From: Georgi Gerganov Date: Sat, 7 Feb 2026 22:50:47 +0000 (+0200) Subject: ci : use -j param correctly when building with sanitizers (#19411) X-Git-Tag: upstream/0.0.8067~100 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=96441c955ea45cfa2b6834cad419b849aa144463;p=pkg%2Fggml%2Fsources%2Fllama.cpp ci : use -j param correctly when building with sanitizers (#19411) * ci : use less jobs when building with sanitizers * cont : fix nproc * cont : fix the fix * cont : simplify --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51a3dc76e..6c7ab7114 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -295,6 +295,7 @@ jobs: -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \ -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + cmake --build build --config ${{ matrix.build_type }} -j $(nproc) - name: Build (no OpenMP) @@ -307,6 +308,7 @@ jobs: -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ -DGGML_OPENMP=OFF + cmake --build build --config ${{ matrix.build_type }} -j $(nproc) - name: Test diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 3d342c35f..f44a9e739 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -81,7 +81,7 @@ jobs: -DLLAMA_SANITIZE_ADDRESS=${{ matrix.sanitizer == 'ADDRESS' }} \ -DLLAMA_SANITIZE_THREAD=${{ matrix.sanitizer == 'THREAD' }} \ -DLLAMA_SANITIZE_UNDEFINED=${{ matrix.sanitizer == 'UNDEFINED' }} - cmake --build build --config ${{ matrix.build_type }} -j ${env:NUMBER_OF_PROCESSORS} --target llama-server + cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server - name: Python setup id: setup_python