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:
parent
2861b9926a
commit
d0111ac521
|
|
@ -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
|
||||
|
|
|
|||
12
Cargo.toml
12
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"
|
||||
|
|
|
|||
10
ci.sh
10
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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue