Replace unmaintained actions-rs/* actions in CI workflows (#53)

Basically all of the `actions-rs/*` actions are unmaintained. See
<https://github.com/actions-rs/toolchain/issues/216> for more
information. Due to their age they generate several warnings in
CI runs.

To get rid of those warnings the occurrences of
`actions-rs/toolchain` are replaced by `dtolnay/rust-toolchain`,
and the occurrences of `actions-rs/cargo` are replaced by direct
invocations of `cargo`.
This commit is contained in:
Dirk Stolle 2023-03-24 15:53:47 +01:00 committed by GitHub
parent c48f3310d9
commit 4b0b454d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 35 deletions

View File

@ -15,12 +15,10 @@ runs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ inputs.rust }}
target: ${{ inputs.target }}
override: true
targets: ${{ inputs.target }}
- uses: RustCrypto/actions/cross-install@master
- if: ${{ inputs.features != 'NO_FEATURE' }}
run: |

View File

@ -37,12 +37,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
targets: ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}
minimal-versions:
@ -61,11 +59,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

View File

@ -37,12 +37,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
targets: ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}
minimal-versions:
@ -61,11 +59,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo check --no-default-features
- run: cargo check
- run: cargo check --features no_unroll
@ -78,11 +74,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
override: true
- run: cargo check --features simd
- run: cargo test --features simd
@ -132,12 +126,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: aarch64-unknown-linux-gnu
override: true
targets: aarch64-unknown-linux-gnu
- name: Install pre-compiled cross
run: |
# We need a recent version for RUSTFLAGS to work.

View File

@ -15,12 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
profile: minimal
override: true
- run: cargo clippy --all -- -D warnings
rustfmt:
@ -30,15 +28,10 @@ jobs:
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
profile: minimal
override: true
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check