Skip to content

Commit

Permalink
build and test each crate separately (ZcashFoundation#689)
Browse files Browse the repository at this point in the history
* build and test each crate separately

* frost-core: fix benchmark compilation
  • Loading branch information
conradoplg authored Jun 20, 2024
1 parent 57c0b7b commit 8ce1522
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,20 @@ jobs:
- uses: dtolnay/[email protected]
- run: cargo build --all-features

build_all_features:
name: build with all features combinations
test_all_features:
name: test all features combinations
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: dtolnay/rust-toolchain@stable
- run: cargo install cargo-all-features
- run: cargo build-all-features
# We check and then test because some test dependencies could help
# a bugged build work, while a regular build would fail.
- run: cargo check-all-features --release
# Note that this also tests each crate separately, which also helps
# catching some issues.
- run: cargo test-all-features --release

build_no_std:
name: build with no_std
Expand Down
1 change: 1 addition & 0 deletions frost-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ serde_json = { version = "1.0", optional = true }
criterion = { version = "0.5", optional = true }

[dev-dependencies]
criterion = { version = "0.5" }
lazy_static = "1.4"
proptest = "1.0"
rand = "0.8"
Expand Down

0 comments on commit 8ce1522

Please sign in to comment.