diff --git a/.gitea/workflows/ccc-ci.yaml b/.gitea/workflows/ccc-ci.yaml index 758af81..7e0ab90 100644 --- a/.gitea/workflows/ccc-ci.yaml +++ b/.gitea/workflows/ccc-ci.yaml @@ -1,5 +1,6 @@ # ccc_rust CI (R3-6). Gitea Actions (GitHub Actions syntax). -# The default job runs every provider's self-test, the cross-provider +# The default job runs every default provider's self-test (wolfSSL is opt-in +# and has its own job), the cross-provider # conformance and CCC v2 vector tests; the liboqs job builds the experimental # provider and runs the McEliece interop check against the pure-Rust one. name: ccc-ci @@ -21,7 +22,20 @@ jobs: - name: Tests (default features) run: ./ci.sh test - name: Release-mode tests (cascade vectors, Argon2id, McEliece) - run: cargo test --workspace --release + run: cargo test --release + - name: AWS-LC-FIPS build and self-test (the release anchor) + run: cargo test -p ccc-crypto-awslc --no-default-features --features fips --release + + wolfssl: + # Opt-in provider (GPLv3 or commercial): self-test and cross-check only. + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: wolfSSL self-test, conformance and pinned vectors + run: cargo test -p ccc-crypto-wolfssl -p ccc-conformance-tests --features ccc-conformance-tests/wolfssl --release liboqs: runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 9b09521..e0be277 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,18 @@ members = [ "crates/ccc-crypto-awslc", "tests/conformance", ] +# Plain `cargo build` / `cargo test` leave out wolfSSL (GPLv3 or commercial). +# Build it explicitly: `cargo test -p ccc-crypto-wolfssl` and +# `cargo test -p ccc-conformance-tests --features wolfssl`. +default-members = [ + "crates/ccc-crypto-core", + "crates/ccc-cascade", + "crates/ccc-crypto-rustcrypto", + "crates/ccc-crypto-oqs", + "crates/ccc-crypto-boring", + "crates/ccc-crypto-awslc", + "tests/conformance", +] [workspace.package] version = "0.2.0" diff --git a/ci.sh b/ci.sh index db2fe56..eb9c8d8 100755 --- a/ci.sh +++ b/ci.sh @@ -47,29 +47,29 @@ do_lint() { pass "Format OK" step "Clippy" - cargo clippy --workspace -- -D warnings || fail "clippy failed" + cargo clippy --all-targets -- -D warnings || fail "clippy failed" pass "Clippy OK" } do_test() { step "Unit tests" - cargo test --workspace || fail "cargo test failed" + cargo test || fail "cargo test failed" pass "Unit tests passed" step "Conformance vectors" - cargo run -p ccc-conformance-tests || fail "conformance tests failed" + cargo run -p ccc-conformance-tests --features wolfssl || fail "conformance tests failed" pass "Conformance tests passed" } do_build() { step "Build (debug)" - cargo build --workspace || fail "debug build failed" + cargo build || fail "debug build failed" pass "Debug build OK" } do_release() { step "Build (release)" - cargo build --workspace --release || fail "release build failed" + cargo build --release || fail "release build failed" pass "Release build OK" }