ci: fix thread sanitizer + remove ccache (#26927)
* test address on Intel-LNL-U7-258V * retry * run address on github * use native build for cpu * this should be runnable everywhere multicore * disable ccache --------- Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
runs-on: [self-hosted, Linux, CPU]
|
runs-on: [self-hosted, Linux]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
-DLLAMA_BUILD_APP=OFF \
|
-DLLAMA_BUILD_APP=OFF \
|
||||||
-DLLAMA_BUILD_IS_DEV=OFF \
|
-DLLAMA_BUILD_IS_DEV=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build build --config Release
|
cmake --build build --config Release -j $(nproc)
|
||||||
cmake --install build --prefix "$PREFIX" --config Release
|
cmake --install build --prefix "$PREFIX" --config Release
|
||||||
|
|
||||||
export LLAMA_CONFIG="$PREFIX"/lib/cmake/llama/llama-config.cmake
|
export LLAMA_CONFIG="$PREFIX"/lib/cmake/llama/llama-config.cmake
|
||||||
@@ -54,4 +54,4 @@ jobs:
|
|||||||
|
|
||||||
cd examples/simple-cmake-pkg
|
cd examples/simple-cmake-pkg
|
||||||
cmake -S . -B build -DCMAKE_PREFIX_PATH="$PREFIX"/lib/cmake
|
cmake -S . -B build -DCMAKE_PREFIX_PATH="$PREFIX"/lib/cmake
|
||||||
cmake --build build
|
cmake --build build -j $(nproc)
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ jobs:
|
|||||||
id: cmake_build
|
id: cmake_build
|
||||||
run: |
|
run: |
|
||||||
cmake -B build \
|
cmake -B build \
|
||||||
|
-DGGML_NATIVE=OFF \
|
||||||
-DLLAMA_FATAL_WARNINGS=ON \
|
-DLLAMA_FATAL_WARNINGS=ON \
|
||||||
-DGGML_RPC=ON \
|
-DGGML_RPC=ON \
|
||||||
-DGGML_NATIVE=OFF
|
-DGGML_NATIVE=OFF
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
# thread and address doesn't run properly on some self hosted machines, so run it on Github instead
|
||||||
- sanitizer: ADDRESS
|
- sanitizer: ADDRESS
|
||||||
machine: [self-hosted, X64, Linux]
|
machine: ubuntu-24.04
|
||||||
# thread doesn't run properly on some self hosted machines, so run it on Github instead
|
|
||||||
- sanitizer: THREAD
|
- sanitizer: THREAD
|
||||||
machine: ubuntu-24.04
|
machine: ubuntu-24.04
|
||||||
- sanitizer: UNDEFINED
|
- sanitizer: UNDEFINED
|
||||||
@@ -54,14 +54,14 @@ jobs:
|
|||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: ccache
|
# - name: ccache
|
||||||
uses: ggml-org/ccache-action@v1.2.21
|
# uses: ggml-org/ccache-action@v1.2.21
|
||||||
if: ${{ matrix.sanitizer == 'THREAD' }}
|
# if: ${{ matrix.sanitizer != 'UNDEFINED' }}
|
||||||
with:
|
# with:
|
||||||
key: ctest-thread-ubuntu-24.04
|
# key: ctest-${{ matrix.sanitizer }}-ubuntu-24.04
|
||||||
variant: ccache
|
# variant: ccache
|
||||||
evict-old-files: 1d
|
# evict-old-files: 1d
|
||||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
# with UNDEFINED sanitizer, we have to build in Debug to avoid GCC 13 false-positive warnings
|
# with UNDEFINED sanitizer, we have to build in Debug to avoid GCC 13 false-positive warnings
|
||||||
- name: Build (undefined)
|
- name: Build (undefined)
|
||||||
|
|||||||
Reference in New Issue
Block a user