Skip to content
Myr

MSRV in CI/CD

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 c44aa1d · Browse files · 2 files+9 added−3 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+9 added−3 removed

  • other:+9 added−3 removed

2 files+9 added−3 removed

modified:.github/workflows/CICD.yml+8 added-3 removed
1name: CICD23env:4 MIN_SUPPORTED_RUST_VERSION: "1.60.0"4 CICD_INTERMEDIATES_DIR: "_cicd-intermediates"56on:7 workflow_dispatch:
22 unmodified lines
30 runs-on: ubuntu-20.0431 steps:32 - name: Checkout source code33 uses: actions/checkout@v33435 - name: Get the MSRV from the package metadata36 id: msrv37 run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name = "bat").rust_version)' >> $GITHUB_OUTPUT35 - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})38 - name: Install rust toolchain (v${{ steps.msrv.outputs.version }})39 uses: dtolnay/rust-toolchain@master40 with:38 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}41 toolchain: ${{ steps.msrv.outputs.version }}42 components: clippy43 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)44 run: cargo clippy --locked --all-targets ${{ env.MSRV_FEATURES }}45 - name: Run tests
16 unmodified lines
62 - { target: x86_64-pc-windows-gnu , os: windows-2019 }63 - { target: x86_64-pc-windows-msvc , os: windows-2019 }64 - { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true }65 - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }66 env:67 BUILD_CMD: cargo68 steps:69 - name: Checkout source code70 uses: actions/checkout@v371
272 unmodified lines
modified:Cargo.toml+1 added