mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Add no_std to CI (#289)
* Add no_std to CI * Add serde to no_std feature test * Try out cargo hack * No serde - expect success * Add build for no-default-features * Exclude default
This commit is contained in:
parent
7dc1bbd855
commit
9577d1e322
1 changed files with 15 additions and 0 deletions
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
|
|
@ -70,6 +70,21 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@1.60.0
|
- uses: dtolnay/rust-toolchain@1.60.0
|
||||||
- run: cargo build
|
- run: cargo build
|
||||||
|
|
||||||
|
build-nostd:
|
||||||
|
name: Build on no_std target (thumbv7em-none-eabi)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: dtolnay/rust-toolchain@master
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
targets: thumbv7em-none-eabi
|
||||||
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
|
# No default features build
|
||||||
|
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features
|
||||||
|
# TODO: serde pending PR#288
|
||||||
|
- run: cargo hack build --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std,serde
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
name: Check that benchmarks compile
|
name: Check that benchmarks compile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue