Skip to content

Commit

Permalink
github: Replace deprecated actions-rs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sschwarzmann authored and aewag committed Sep 1, 2024
1 parent b291425 commit 6010559
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
6 changes: 2 additions & 4 deletions .github/actions/cross-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/lms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 6010559

Please sign in to comment.