workspace: leave wolfSSL out of default builds

wolfSSL is GPLv3 or commercial; it builds only when asked, in its own CI job.
CI also builds and self-tests AWS-LC-FIPS.

Refs: R3
This commit is contained in:
JohnE 2026-11-16 20:55:55 -05:00
parent 2861b9926a
commit d0111ac521
3 changed files with 33 additions and 7 deletions

View File

@ -1,5 +1,6 @@
# ccc_rust CI (R3-6). Gitea Actions (GitHub Actions syntax). # 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 # conformance and CCC v2 vector tests; the liboqs job builds the experimental
# provider and runs the McEliece interop check against the pure-Rust one. # provider and runs the McEliece interop check against the pure-Rust one.
name: ccc-ci name: ccc-ci
@ -21,7 +22,20 @@ jobs:
- name: Tests (default features) - name: Tests (default features)
run: ./ci.sh test run: ./ci.sh test
- name: Release-mode tests (cascade vectors, Argon2id, McEliece) - 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: liboqs:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -10,6 +10,18 @@ members = [
"crates/ccc-crypto-awslc", "crates/ccc-crypto-awslc",
"tests/conformance", "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] [workspace.package]
version = "0.2.0" version = "0.2.0"

10
ci.sh
View File

@ -47,29 +47,29 @@ do_lint() {
pass "Format OK" pass "Format OK"
step "Clippy" step "Clippy"
cargo clippy --workspace -- -D warnings || fail "clippy failed" cargo clippy --all-targets -- -D warnings || fail "clippy failed"
pass "Clippy OK" pass "Clippy OK"
} }
do_test() { do_test() {
step "Unit tests" step "Unit tests"
cargo test --workspace || fail "cargo test failed" cargo test || fail "cargo test failed"
pass "Unit tests passed" pass "Unit tests passed"
step "Conformance vectors" 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" pass "Conformance tests passed"
} }
do_build() { do_build() {
step "Build (debug)" step "Build (debug)"
cargo build --workspace || fail "debug build failed" cargo build || fail "debug build failed"
pass "Debug build OK" pass "Debug build OK"
} }
do_release() { do_release() {
step "Build (release)" step "Build (release)"
cargo build --workspace --release || fail "release build failed" cargo build --release || fail "release build failed"
pass "Release build OK" pass "Release build OK"
} }