mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Cherry-picked Github actions from 1f9e527
This commit is contained in:
parent
c000957bae
commit
3a94bf8a8e
1 changed files with 27 additions and 84 deletions
111
.github/workflows/rust.yml
vendored
111
.github/workflows/rust.yml
vendored
|
|
@ -14,126 +14,69 @@ jobs:
|
||||||
name: Test u32 backend
|
name: Test u32 backend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
- run: cargo test --no-default-features --features "std u32_backend"
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --no-default-features --features "std u32_backend"
|
|
||||||
|
|
||||||
test-u64:
|
test-u64:
|
||||||
name: Test u64 backend
|
name: Test u64 backend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
- run: cargo test --no-default-features --features "std u64_backend"
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --no-default-features --features "std u64_backend"
|
|
||||||
|
|
||||||
test-simd:
|
test-simd:
|
||||||
name: Test simd backend (nightly)
|
name: Test simd backend (nightly)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
- run: cargo test --no-default-features --features "std simd_backend"
|
||||||
profile: minimal
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --no-default-features --features "std simd_backend"
|
|
||||||
|
|
||||||
test-defaults-serde:
|
test-defaults-serde:
|
||||||
name: Test default feature selection and serde
|
name: Test default feature selection and serde
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
- run: cargo test --features "serde"
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --features "serde"
|
|
||||||
|
|
||||||
test-alloc-u32:
|
test-alloc-u32:
|
||||||
name: Test no_std+alloc with u32 backend
|
name: Test no_std+alloc with u32 backend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
- run: cargo test --lib --no-default-features --features "alloc u32_backend"
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --lib --no-default-features --features "alloc u32_backend"
|
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
name: Test nightly compiler
|
name: Test nightly compiler
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
- run: cargo test --features "nightly"
|
||||||
profile: minimal
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --features "nightly"
|
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
name: Current MSRV is 1.56.1
|
name: Current MSRV is 1.56.1
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
# First run `cargo +nightly -Z minimal-verisons check` in order to get a
|
# First run `cargo +nightly -Z minimal-verisons check` in order to get a
|
||||||
# Cargo.lock with the oldest possible deps
|
# Cargo.lock with the oldest possible deps
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
with:
|
- run: cargo -Z minimal-versions check --no-default-features --features "fiat_u64_backend serde"
|
||||||
profile: minimal
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
- run: cargo -Z minimal-versions check --no-default-features --features "fiat_u64_backend,serde"
|
|
||||||
# Now check that `cargo build` works with respect to the oldest possible
|
# Now check that `cargo build` works with respect to the oldest possible
|
||||||
# deps and the stated MSRV
|
# deps and the stated MSRV
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@1.56.1
|
||||||
with:
|
- run: cargo build --no-default-features --features "fiat_u64_backend serde"
|
||||||
profile: minimal
|
|
||||||
toolchain: 1.56.1
|
|
||||||
override: true
|
|
||||||
- run: cargo build --no-default-features --features "fiat_u64_backend,serde"
|
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
name: Check that benchmarks compile
|
name: Check that benchmarks compile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
# This filter selects no benchmarks, so we don't run any, only build them.
|
||||||
profile: minimal
|
- run: cargo bench "nonexistentbenchmark"
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: bench
|
|
||||||
# This filter selects no benchmarks, so we don't run any, only build them.
|
|
||||||
args: "nonexistentbenchmark"
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue