From 60105592817c29eaf1eb436e0da65279a8b5dc10 Mon Sep 17 00:00:00 2001 From: Stephan Schwarzmann Date: Wed, 15 Nov 2023 16:41:37 +0100 Subject: [PATCH] github: Replace deprecated actions-rs Replace (as suggested in online discussions) with "dtolnay/rust-toolchain" due to deprecated node12. See: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ https://github.com/dtolnay/rust-toolchain --- .github/actions/cross-tests/action.yml | 6 ++---- .github/workflows/lms.yml | 21 ++++++--------------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/.github/actions/cross-tests/action.yml b/.github/actions/cross-tests/action.yml index 83c745eb..319ad014 100644 --- a/.github/actions/cross-tests/action.yml +++ b/.github/actions/cross-tests/action.yml @@ -14,12 +14,10 @@ runs: using: "composite" steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ inputs.rust }} - target: ${{ inputs.target }} - override: true + targets: ${{ inputs.target }} - uses: RustCrypto/actions/cross-install@master - run: | # cd ${{ inputs.package }} Not needed, as only a single crate is located in this repository diff --git a/.github/workflows/lms.yml b/.github/workflows/lms.yml index 6061890a..fcf73d0d 100644 --- a/.github/workflows/lms.yml +++ b/.github/workflows/lms.yml @@ -17,12 +17,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: toolchain: stable components: rustfmt - profile: minimal - override: true - run: | cargo fmt --version cargo fmt --all -- --check @@ -32,12 +30,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: toolchain: stable components: clippy - profile: minimal - override: true - run: | cargo clippy --version cargo clippy --lib --bins --tests --examples --all-features -- -D warnings @@ -86,12 +82,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: cargo build --no-default-features --target ${{ matrix.target }} test: @@ -105,11 +99,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true - run: cargo test - run: cargo test -- --include-ignored - run: cargo test --features fast_verify @@ -121,9 +113,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: RustCrypto/actions/cargo-cache@master - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: nightly - run: rustup run nightly cargo bench