jobs:
linux:
- runs-on: [self-hosted, Linux, CPU]
+ runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v6
with:
-DLLAMA_BUILD_APP=OFF \
-DLLAMA_BUILD_IS_DEV=OFF \
-DCMAKE_BUILD_TYPE=Release
- cmake --build build --config Release
+ cmake --build build --config Release -j $(nproc)
cmake --install build --prefix "$PREFIX" --config Release
export LLAMA_CONFIG="$PREFIX"/lib/cmake/llama/llama-config.cmake
cd examples/simple-cmake-pkg
cmake -S . -B build -DCMAKE_PREFIX_PATH="$PREFIX"/lib/cmake
- cmake --build build
+ cmake --build build -j $(nproc)
strategy:
matrix:
include:
+ # thread and address doesn't run properly on some self hosted machines, so run it on Github instead
- sanitizer: ADDRESS
- machine: [self-hosted, X64, Linux]
- # thread doesn't run properly on some self hosted machines, so run it on Github instead
+ machine: ubuntu-24.04
- sanitizer: THREAD
machine: ubuntu-24.04
- sanitizer: UNDEFINED
id: checkout
uses: actions/checkout@v6
- - name: ccache
- uses: ggml-org/ccache-action@v1.2.21
- if: ${{ matrix.sanitizer == 'THREAD' }}
- with:
- key: ctest-thread-ubuntu-24.04
- variant: ccache
- evict-old-files: 1d
- save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+ # - name: ccache
+ # uses: ggml-org/ccache-action@v1.2.21
+ # if: ${{ matrix.sanitizer != 'UNDEFINED' }}
+ # with:
+ # key: ctest-${{ matrix.sanitizer }}-ubuntu-24.04
+ # variant: ccache
+ # evict-old-files: 1d
+ # 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
- name: Build (undefined)