From 8ce152222bd69267eab0460d857408ec7abfb829 Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Thu, 20 Jun 2024 10:34:35 -0300 Subject: [PATCH] build and test each crate separately (#689) * build and test each crate separately * frost-core: fix benchmark compilation --- .github/workflows/main.yml | 11 ++++++++--- frost-core/Cargo.toml | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05a9ffd4..9d14a1ca 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 build_no_std: name: build with no_std diff --git a/frost-core/Cargo.toml b/frost-core/Cargo.toml index 51125140..0f45e388 100644 --- a/frost-core/Cargo.toml +++ b/frost-core/Cargo.toml @@ -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"