@@ -34,11 +34,41 @@ jobs:
3434 with :
3535 toolchain : ${{ inputs.toolchain }}
3636
37- # ml-kem-0.2.1 does not build on toolchain 1.90.0 and cargo-semver v0.44.0.
38- # cargo-semver:
39- # uses: Cosmian/reusable_workflows/.github/workflows/cargo-semver.yml@develop
40- # with:
41- # toolchain: ${{ inputs.toolchain }}
37+ cargo-test :
38+ name : No Nix - ${{ matrix.runner }} - ${{ matrix.type }} - ${{ matrix.features }}
39+ runs-on : ${{ matrix.runner }}
40+ strategy :
41+ fail-fast : false
42+ matrix :
43+ type :
44+ - sqlite
45+ features : [fips, non-fips]
46+ runner : [ubuntu-24.04, ubuntu-24.04-arm, macos-15]
47+
48+ steps :
49+ - uses : dtolnay/rust-toolchain@master
50+ with :
51+ toolchain : 1.90.0
52+ components : rustfmt, clippy
53+
54+ - uses : actions/checkout@v6
55+ with :
56+ submodules : recursive
57+
58+ - name : With bash test script
59+ run : |
60+ set -ex
61+ bash .github/scripts/test_${{ matrix.type }}.sh --profile debug --variant ${{ matrix.features }}
62+
63+ - name : With cargo only
64+ run : |
65+ set -ex
66+ if [ "${{ matrix.features }}" = "non-fips" ]; then
67+ export FEATURES_FLAG="--features non-fips";
68+ else
69+ export FEATURES_FLAG="";
70+ fi
71+ cargo test --workspace --lib $FEATURES_FLAG -- --nocapture
4272
4373 cargo-publish :
4474 name : Cargo Publish Workspace
4979 token : ${{ secrets.CRATES_IO }}
5080
5181 test : # Run all tests
82+ if : github.repository == 'Cosmian/kms'
5283 uses : ./.github/workflows/test_all.yml
5384 secrets : inherit
5485 with :
0 commit comments