Skip to content

Commit fb3ce0b

Browse files
authored
Merge pull request #1223 from pq-code-package/fix-valgrind-avx512
LIBOQS CT CI: Always compile for Haswell to avoid valgrind AVX512 failures
2 parents 5a4c482 + 68b88c6 commit fb3ce0b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/integration-liboqs.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) The mlkem-native project authors
12
# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
23

34
name: Test liboqs integration
@@ -12,13 +13,25 @@ jobs:
1213
strategy:
1314
fail-fast: false
1415
matrix:
15-
system: [ubuntu-latest, pqcp-arm64]
16-
cmake:
17-
- name: Auto
16+
include:
17+
# x86
18+
- system: ubuntu-latest
19+
name: Haswell
20+
# ubuntu-latest may have AVX512 instructions that are not supported by valgrind
21+
# We explicitly compile for an older uarch to work around valgrind failures
22+
# TODO: switch this back to auto once valgrind supports AVX512 well
23+
flags: -DOQS_DIST_BUILD=OFF -DOQS_OPT_TARGET=haswell -DCMAKE_BUILD_TYPE=Debug -DOQS_ENABLE_TEST_CONSTANT_TIME=ON
24+
- system: ubuntu-latest
25+
name: C
26+
flags: -DOQS_DIST_BUILD=OFF -DOQS_OPT_TARGET=generic -DCMAKE_BUILD_TYPE=Debug -DOQS_ENABLE_TEST_CONSTANT_TIME=ON
27+
# AArch64
28+
- system: pqcp-arm64
29+
name: Auto
1830
flags: -DOQS_DIST_BUILD=OFF -DOQS_OPT_TARGET=auto -DCMAKE_BUILD_TYPE=Debug -DOQS_ENABLE_TEST_CONSTANT_TIME=ON
19-
- name: C
31+
- system: pqcp-arm64
32+
name: C
2033
flags: -DOQS_DIST_BUILD=OFF -DOQS_OPT_TARGET=generic -DCMAKE_BUILD_TYPE=Debug -DOQS_ENABLE_TEST_CONSTANT_TIME=ON
21-
name: Build (${{ matrix.cmake.name }}, ${{ matrix.system }})
34+
name: Build (${{ matrix.name }}, ${{ matrix.system }})
2235
runs-on: ${{ matrix.system }}
2336
steps:
2437
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -60,7 +73,7 @@ jobs:
6073
cd $LIBOQS_DIR
6174
mkdir build
6275
cd build
63-
cmake ${{ matrix.cmake.flags }} ..
76+
cmake ${{ matrix.flags }} ..
6477
make -j$(nproc)
6578
- name: Run KEM-test
6679
run: |

0 commit comments

Comments
 (0)