Skip to content

Commit

Permalink
Add no_std to CI (dalek-cryptography#289)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
pinkforest authored Mar 21, 2023
1 parent 7dc1bbd commit 9577d1e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@ jobs:
- uses: dtolnay/[email protected]
- 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:
name: Check that benchmarks compile
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9577d1e

Please sign in to comment.