Skip to content

Commit

Permalink
server: CI reduce build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Feb 26, 2024
1 parent c84d04b commit 6734494
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
matrix:
sanitizer: [ADDRESS, THREAD, UNDEFINED, ]
build_type: [Debug, Release]
include:
- sanitizer: 'ADDRESS'
defines: '-DLLAMA_SANITIZE_ADDRESS=ON'
- sanitizer: 'THREAD'
defines: '-DLLAMA_SANITIZE_THREAD=ON'
- sanitizer: 'ADDRESS'
defines: '-DLLAMA_SANITIZE_UNDEFINED=ON'


if: matrix.sanitizer == '' && matrix.build_type == 'Release' || matrix.sanitizer != '' && matrix.build_type == 'Debug'

Expand Down Expand Up @@ -54,8 +62,8 @@ jobs:
cmake .. \
-DLLAMA_NATIVE=OFF \
-DLLAMA_BUILD_SERVER=ON \
${{ matrix.sanitizer != '' && "-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON" || "" }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }};
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
${{ matrix.defines }};
cmake --build . --config ${{ matrix.build_type }} -j $(nproc) --target server
- name: Tests dependencies
Expand Down

0 comments on commit 6734494

Please sign in to comment.