To avoid nightly regressions breaking the build, the CI configuration has been updated to *only* use nightly for resolving Cargo.lock by using `cargo update -Z minimal-versions`. Previously, it was running `cargo check` which would attempt to compile all of the dependencies and the code, which is why the diagnostic bug was triggered. By avoiding any kind of code compilation using nightly we can avoid such regressions in the future. Additionally, the clippy job has been changed to run on the latest stable release (1.73.0) rather than nightly, which will prevent future clippy lints from breaking the build. Instead, they can be addressed when clippy is updated.
34 lines
734 B
YAML
34 lines
734 B
YAML
name: ed25519 Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ '**' ]
|
|
paths: 'ed25519-dalek/**'
|
|
pull_request:
|
|
branches: [ '**' ]
|
|
paths: 'ed25519-dalek/**'
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ed25519-dalek
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
RUSTFLAGS: '-D warnings'
|
|
RUSTDOCFLAGS: '-D warnings'
|
|
|
|
jobs:
|
|
|
|
msrv:
|
|
name: Current MSRV is 1.60.0
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
# Re-resolve Cargo.lock with minimal versions
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
- run: cargo update -Z minimal-versions
|
|
# Now check that `cargo build` works with respect to the oldest possible
|
|
# deps and the stated MSRV
|
|
- uses: dtolnay/rust-toolchain@1.60.0
|
|
- run: cargo build
|