|
@@ -112,9 +112,9 @@ jobs:
|
|
|
-DGGML_OPENMP=OFF ;
|
|
-DGGML_OPENMP=OFF ;
|
|
|
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
|
|
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
|
|
|
|
|
|
|
|
- - name: Build
|
|
|
|
|
- id: cmake_build
|
|
|
|
|
- if: ${{ matrix.sanitizer != 'THREAD' }}
|
|
|
|
|
|
|
+ - name: Build (sanitizers)
|
|
|
|
|
+ id: cmake_build_sanitizers
|
|
|
|
|
+ if: ${{ matrix.sanitizer != '' && matrix.sanitizer != 'THREAD' }}
|
|
|
run: |
|
|
run: |
|
|
|
cmake -B build \
|
|
cmake -B build \
|
|
|
-DGGML_NATIVE=OFF \
|
|
-DGGML_NATIVE=OFF \
|
|
@@ -124,12 +124,31 @@ jobs:
|
|
|
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON ;
|
|
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON ;
|
|
|
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
|
|
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
|
|
|
|
|
|
|
|
|
|
+ - name: Build (sanitizers)
|
|
|
|
|
+ id: cmake_build
|
|
|
|
|
+ if: ${{ matrix.sanitizer == '' }}
|
|
|
|
|
+ run: |
|
|
|
|
|
+ cmake -B build \
|
|
|
|
|
+ -DGGML_NATIVE=OFF \
|
|
|
|
|
+ -DLLAMA_BUILD_SERVER=ON \
|
|
|
|
|
+ -DLLAMA_CURL=ON \
|
|
|
|
|
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ;
|
|
|
|
|
+ cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
|
|
|
|
|
+
|
|
|
- name: Tests
|
|
- name: Tests
|
|
|
id: server_integration_tests
|
|
id: server_integration_tests
|
|
|
|
|
+ if: ${{ matrix.sanitizer == '' }}
|
|
|
run: |
|
|
run: |
|
|
|
cd examples/server/tests
|
|
cd examples/server/tests
|
|
|
./tests.sh
|
|
./tests.sh
|
|
|
|
|
|
|
|
|
|
+ - name: Tests (sanitizers)
|
|
|
|
|
+ id: server_integration_tests_sanitizers
|
|
|
|
|
+ if: ${{ matrix.sanitizer != '' }}
|
|
|
|
|
+ run: |
|
|
|
|
|
+ cd examples/server/tests
|
|
|
|
|
+ LLAMA_SANITIZE=1 ./tests.sh
|
|
|
|
|
+
|
|
|
- name: Slow tests
|
|
- name: Slow tests
|
|
|
id: server_integration_tests_slow
|
|
id: server_integration_tests_slow
|
|
|
if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
|
|
if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
|