0.4.10: update base64, msrv #383
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
rust: | |
name: Test | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- '1.70' | |
include: | |
- rust: stable | |
extra_components: rustfmt | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: ${{ matrix.extra_components }} | |
- name: Build (no features) | |
run: cargo build --all-targets --workspace | |
- name: Build (all features) | |
run: cargo build --all-features --all-targets --workspace | |
- name: Test (no features) | |
run: cargo test --all-targets --workspace | |
- name: Test (all features) | |
run: cargo test --all-features --all-targets --workspace | |
- name: Check fuzz tests | |
run: cd fuzz && cargo check --workspace | |
- name: Check main workspace formatting | |
if: matrix.rust == 'stable' | |
run: cargo fmt --all --check | |
- name: Check fuzz workspace formatting | |
if: matrix.rust == 'stable' | |
run: cd fuzz && cargo fmt --all --check | |
- name: Clippy on main workspace | |
if: matrix.rust == 'stable' | |
run: cargo clippy --workspace -- -D warnings | |
- name: Clippy on fuzz workspace | |
if: matrix.rust == 'stable' | |
run: cd fuzz && cargo clippy --workspace -- -D warnings | |
license: | |
name: Check copyright/license headers | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: find . -type f -print0 | xargs -0 .github/workflows/check-license.py |