Skip to content
Myr

Fix pipeline!

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 6a4239d · Browse files · 2 files+5 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−17 removed

  • other:+5 added−17 removed

2 files+5 added−17 removed

modified:.github/workflows/CICD.yml+4 added-15 removed
11 unmodified lines
12 tags:13 - '*'1415jobs:16 ensure_cargo_fmt:17 name: Ensure 'cargo fmt' has been run18 runs-on: ubuntu-20.0419 steps:20 - uses: dtolnay/rust-toolchain@stable21 with:22 components: rustfmt23 - uses: actions/checkout@v324 - run: cargo fmt -- --check25 - name: Ensure MSRV is set in `clippy.toml`26 run: grep "^msrv = \"${{ env.MIN_SUPPORTED_RUST_VERSION }}\"\$" clippy.toml2716 min_version:17 name: Minimum supported rust version18 runs-on: ubuntu-20.0419 steps:20 - name: Checkout source code21 uses: actions/checkout@v33422 - name: Get the MSRV from the package metadata23 id: msrv37 run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name = "bat").rust_version)' >> $GITHUB_OUTPUT24 run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name = "hyperfine").rust_version)' >> $GITHUB_OUTPUT25 - name: Install rust toolchain (v${{ steps.msrv.outputs.version }})26 uses: dtolnay/rust-toolchain@master27 with:28 toolchain: ${{ steps.msrv.outputs.version }}42 components: clippy29 components: clippy, rustfmt30 - name: Run cargo fmt31 run: cargo fmt -- --check32 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)33 run: cargo clippy --locked --all-targets ${{ env.MSRV_FEATURES }}34 - name: Run tests35 run: cargo test --locked ${{ env.MSRV_FEATURES }}
297 unmodified lines
modified:Cargo.toml+1 added-2 removed