Skip to content
Myr

CI: remove use of actions-rs/toolchain

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

actions-rs is currently inactive and has an issue like actions-rs/toolchain#219

authored by Miles Liu · committed by Miles Liu · parent f4c6d55 · Browse files · 1 file+14 added−18 removed
This commit

State

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

Diff stats

1 file+14 added−18 removed

  • other:+14 added−18 removed

1 file+14 added−18 removed

modified:.github/workflows/CICD.yml+14 added-18 removed
19 unmodified lines
20 steps:21 - name: Checkout source code22 uses: actions/checkout@v323 - name: Install rust toolchain24 uses: actions-rs/toolchain@v125 with:26 toolchain: stable27 default: true28 profile: minimal # minimal component installation (ie, no documentation)29 components: clippy, rustfmt24 run: |25 rm -f "${HOME}/.cargo/bin/"{rustfmt,cargo-fmt}26 rustup set profile minimal27 rustup toolchain install stable -c "clippy,rustfmt"28 rustup default stable29 - name: Ensure `cargo fmt` has been run30 run: cargo fmt --check31 - name: Ensure MSRV is set in `clippy.toml`32 run: grep "^msrv = \"${{ env.MIN_SUPPORTED_RUST_VERSION }}\"\$" clippy.toml
7 unmodified lines
40 - name: Checkout source code41 uses: actions/checkout@v34243 - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})45 uses: actions-rs/toolchain@v146 with:47 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}48 default: true49 components: clippy50 profile: minimal44 run: |45 rustup set profile minimal46 rustup toolchain install ${{ env.MIN_SUPPORTED_RUST_VERSION }} -c clippy47 rustup default ${{ env.MIN_SUPPORTED_RUST_VERSION }}48 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)49 run: cargo clippy --locked --all-targets --all-features50 - name: Run tests51 run: cargo test --locked
37 unmodified lines
89 echo "PROJECT_MAINTAINER=$(sed -n 's/^authors = \["\(.*\)"\]/\1/p' Cargo.toml)" >> $GITHUB_ENV90 echo "PROJECT_HOMEPAGE=$(sed -n 's/^homepage = "\(.*\)"/\1/p' Cargo.toml)" >> $GITHUB_ENV9192 - name: Install Rust toolchain96 uses: actions-rs/toolchain@v197 with:98 toolchain: stable99 target: ${{ matrix.job.target }}100 override: true101 profile: minimal # minimal component installation (ie, no documentation)93 run: |94 rustup set profile minimal95 rustup toolchain install stable96 rustup override set stable97 rustup target add ${{ matrix.job.target }}9899 - name: Show version information (Rust, cargo, GCC)100 shell: bash101 run: |
252 unmodified lines