From 6b9e1fe6673fa91c14fa962ccb85f3a26089766c Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Wed, 19 Jun 2024 19:25:34 -0300 Subject: [PATCH 1/2] build and test each crate separately --- .github/workflows/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6e082c0..58a2c212 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,15 +38,20 @@ jobs: - uses: dtolnay/rust-toolchain@1.66.1 - 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/checkout@v4.1.7 - 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 test_beta: name: test on beta From b928380fc91575f30fabbca43421f4345a94df4e Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Wed, 19 Jun 2024 19:40:45 -0300 Subject: [PATCH 2/2] frost-core: fix benchmark compilation --- frost-core/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/frost-core/Cargo.toml b/frost-core/Cargo.toml index 2a029825..88a885ac 100644 --- a/frost-core/Cargo.toml +++ b/frost-core/Cargo.toml @@ -43,6 +43,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"