From 96125b37005ab84e5a1588c5575ff37be1eb4123 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 30 Jun 2026 15:14:03 +0200 Subject: [PATCH] ci : set GGML_NATIVE=OFF for sanitize builds 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 --- .github/workflows/build-sanitize.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-sanitize.yml b/.github/workflows/build-sanitize.yml index e517f7bade4..465faeaed25 100644 --- a/.github/workflows/build-sanitize.yml +++ b/.github/workflows/build-sanitize.yml @@ -58,6 +58,7 @@ jobs: run: | cmake . -DCMAKE_BUILD_TYPE=Debug \ -DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON \ + -DGGML_NATIVE=OFF \ -DGGML_OPENMP=OFF make @@ -65,7 +66,8 @@ jobs: if: ${{ matrix.sanitizer == 'ADDRESS' }} run: | cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON + -DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON \ + -DGGML_NATIVE=OFF make - name: Build (no OpenMP) @@ -73,6 +75,7 @@ jobs: run: | cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON \ + -DGGML_NATIVE=OFF \ -DGGML_OPENMP=OFF make