Skip to content

Commit be73324

Browse files
committed
CI: Align build_kat functional tests with mlkem-native
Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent e9b84bb commit be73324

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,15 @@ jobs:
136136
runs-on: ${{ matrix.target.runner }}
137137
steps:
138138
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
139-
- name: build + test
139+
- name: build + test (no-opt)
140140
uses: ./.github/actions/multi-functest
141141
with:
142142
nix-shell: ${{ matrix.target.nix_shell }}
143143
nix-cache: ${{ matrix.target.mode == 'native' && 'false' || 'true' }}
144144
gh_token: ${{ secrets.GITHUB_TOKEN }}
145145
compile_mode: ${{ matrix.target.mode }}
146-
# There is no native code yet on PPC64LE, R-V or AArch64_be, so no point running opt tests
147-
opt: ${{ (matrix.target.arch != 'ppc64le' && matrix.target.arch != 'riscv64' && matrix.target.arch != 'riscv32' && matrix.target.arch != 'aarch64_be') && 'all' || 'no_opt' }}
148-
- name: build + test (+debug+memsan+ubsan)
146+
opt: 'no_opt'
147+
- name: build + test (+debug+memsan+ubsan, native)
149148
uses: ./.github/actions/multi-functest
150149
if: ${{ matrix.target.mode == 'native' }}
151150
with:
@@ -154,6 +153,27 @@ jobs:
154153
cflags: "-DMLDSA_DEBUG -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
155154
ldflags: "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
156155
check_namespace: 'false'
156+
- name: build + test (cross, opt)
157+
uses: ./.github/actions/multi-functest
158+
# There is no native code yet on PPC64LE, riscv32 or AArch64_be, so no point running opt tests
159+
if: ${{ matrix.target.mode != 'native' && (matrix.target.arch != 'ppc64le' && matrix.target.arch != 'riscv32' && matrix.target.arch != 'aarch64_be') }}
160+
with:
161+
nix-shell: ${{ matrix.target.nix_shell }}
162+
nix-cache: ${{ matrix.target.mode == 'native' && 'false' || 'true' }}
163+
gh_token: ${{ secrets.GITHUB_TOKEN }}
164+
compile_mode: ${{ matrix.target.mode }}
165+
opt: 'opt'
166+
- name: build + test (cross, opt, +debug)
167+
uses: ./.github/actions/multi-functest
168+
# There is no native code yet on PPC64LE, riscv32 or AArch64_be, so no point running opt tests
169+
if: ${{ matrix.target.mode != 'native' && (matrix.target.arch != 'ppc64le' && matrix.target.arch != 'riscv32' && matrix.target.arch != 'aarch64_be') }}
170+
with:
171+
nix-shell: ${{ matrix.target.nix_shell }}
172+
nix-cache: ${{ matrix.target.mode == 'native' && 'false' || 'true' }}
173+
gh_token: ${{ secrets.GITHUB_TOKEN }}
174+
compile_mode: ${{ matrix.target.mode }}
175+
cflags: "-DMLDSA_DEBUG"
176+
opt: 'opt'
157177
backend_tests:
158178
name: AArch64 FIPS202 backends (${{ matrix.backend }})
159179
strategy:

0 commit comments

Comments
 (0)