Skip to content

Commit 9454deb

Browse files
bigbrettdanielinux
authored andcommitted
add test for wolfHSM ml-dsa to CI
1 parent 4b8e4b7 commit 9454deb

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/test-wolfhsm-simulator.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ on:
99

1010
jobs:
1111
wolfhsm_simulator_test:
12+
# Matrix strategy runs all steps below for each config specified.
13+
# This allows testing multiple configurations without duplicating the workflow.
14+
strategy:
15+
matrix:
16+
config:
17+
- name: "Standard wolfHSM"
18+
file: "config/examples/sim-wolfHSM.config"
19+
- name: "wolfHSM ML-DSA"
20+
file: "config/examples/sim-wolfHSM-mldsa.config"
21+
fail-fast: false
22+
1223
runs-on: ubuntu-latest
1324
steps:
1425
- uses: actions/checkout@v3
@@ -25,9 +36,9 @@ jobs:
2536
run: |
2637
make distclean
2738
28-
- name: Select config (wolfHSM simulator)
39+
- name: Select config (${{ matrix.config.name }})
2940
run: |
30-
cp config/examples/sim-wolfHSM.config .config
41+
cp ${{ matrix.config.file }} .config
3142
3243
- name: Build tools
3344
run: |
@@ -62,5 +73,6 @@ jobs:
6273
6374
# Kill the server if it is still running
6475
- name: Kill POSIX TCP server
76+
if: always()
6577
run: |
66-
kill $TCP_SERVER_PID
78+
kill $TCP_SERVER_PID || true

0 commit comments

Comments
 (0)