Skip to content

Monorepo ed/x/curve25519 #2

Monorepo ed/x/curve25519

Monorepo ed/x/curve25519 #2

name: Rust
on:
push:
branches: [ '**' ]
paths: 'x25519-dalek/**'
pull_request:
branches: [ '**' ]
paths: 'x25519-dalek/**'
defaults:
run:
working-directory: x25519-dalek
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-D warnings'
RUSTDOCFLAGS: '-D warnings'
jobs:
msrv:
name: x25519 Current MSRV is 1.60.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# First delete the checked-in `Cargo.lock`. We're going to regenerate it
- run: rm Cargo.lock
# Now run `cargo +nightly -Z minimal-verisons check` in order to get a
# Cargo.lock with the oldest possible deps
- uses: dtolnay/rust-toolchain@nightly
- run: cargo -Z minimal-versions check --no-default-features --features serde
# 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
bench:
name: x25519 Check that benchmarks compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --benches