Skip to content

Commit 0874de3

Browse files
authored
ci : set GGML_NATIVE=OFF for sanitize builds (#3920)
This commit sets GGML_NATIVE=OFF for all sanitize builds to avoid the case where the compilation happens using a runner that support instructions that may not be available on all runners leading to illegal instruction and failed CI runs. Refs: https://github.com/ggml-org/whisper.cpp/actions/runs/28444909499/job/84291639530?pr=3919
1 parent 65dc3fe commit 0874de3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build-sanitize.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,24 @@ jobs:
5858
run: |
5959
cmake . -DCMAKE_BUILD_TYPE=Debug \
6060
-DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON \
61+
-DGGML_NATIVE=OFF \
6162
-DGGML_OPENMP=OFF
6263
make
6364
6465
- name: Build
6566
if: ${{ matrix.sanitizer == 'ADDRESS' }}
6667
run: |
6768
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
68-
-DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON
69+
-DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON \
70+
-DGGML_NATIVE=OFF
6971
make
7072
7173
- name: Build (no OpenMP)
7274
if: ${{ matrix.sanitizer == 'THREAD' }}
7375
run: |
7476
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
7577
-DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON \
78+
-DGGML_NATIVE=OFF \
7679
-DGGML_OPENMP=OFF
7780
make
7881

0 commit comments

Comments
 (0)