Skip to content

Commit 8a533f0

Browse files
authored
server: CI tests reduce build matrix (#5725)
1 parent 269de86 commit 8a533f0

File tree

1 file changed

+17
-61
lines changed

1 file changed

+17
-61
lines changed

.github/workflows/server.yml

Lines changed: 17 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -6,57 +6,32 @@ on:
66
push:
77
branches:
88
- master
9-
- test/server-add-ci-test # FIXME remove
10-
paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/**.*']
9+
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
1110
pull_request:
1211
types: [opened, synchronize, reopened]
13-
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/**.*']
12+
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
1413

1514
jobs:
1615
server:
1716
runs-on: ubuntu-latest
1817

1918
strategy:
2019
matrix:
21-
build: [noavx, avx2, avx, avx512, cublas, clblast, openblas, kompute, vulkan]
2220
sanitizer: [ADDRESS, THREAD, UNDEFINED]
2321
build_type: [Debug, Release]
2422
include:
25-
- build: 'noavx'
26-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF'
27-
image: ubuntu:latest
28-
- build: 'avx2'
29-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON'
30-
image: ubuntu:latest
31-
- build: 'avx'
32-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX2=OFF'
33-
image: ubuntu:latest
34-
- build: 'avx512'
35-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_AVX512=ON'
36-
image: ubuntu:latest
37-
experimental: true
38-
- build: 'cublas'
39-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CUBLAS=ON'
40-
image: nvidia/cuda:12.3.1-devel-ubuntu22.04
41-
arch_not_available: true # require nvidia docker engine
42-
- build: 'clblast'
43-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_CLBLAST=ON'
44-
image: ubuntu:latest
45-
arch_not_available: true
46-
- build: 'openblas'
47-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS'
48-
image: ubuntu:latest
49-
- build: 'kompute'
50-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_KOMPUTE=ON -DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON'
51-
image: ubuntu:latest
52-
arch_not_available: true
53-
- build: 'vulkan'
54-
defines: '-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_VULKAN=ON'
55-
image: ubuntu:latest
56-
arch_not_available: true
23+
- build_type: Release
24+
sanitizer: ""
25+
exclude:
26+
- build_type: Release
27+
sanitizer: ADDRESS
28+
- build_type: Release
29+
sanitizer: THREAD
30+
- build_type: Release
31+
sanitizer: UNDEFINED
5732

5833
container:
59-
image: ${{ matrix.image }}
34+
image: ubuntu:latest
6035
ports:
6136
- 8888
6237
options: --cpus 4
@@ -72,40 +47,22 @@ jobs:
7247
apt-get update
7348
apt-get -y install \
7449
build-essential \
75-
pkg-config \
7650
git \
7751
cmake \
7852
python3-pip \
7953
wget \
8054
psmisc
8155
82-
- name: Download CLBlast
83-
id: get_clblast
84-
if: ${{ matrix.build == 'clblast' }}
85-
run: |
86-
apt install -y libclblast-dev
87-
88-
- name: Download OpenBLAS
89-
id: get_openblas
90-
if: ${{ matrix.build == 'openblas' }}
91-
run: |
92-
apt-get -y install libopenblas-dev
93-
94-
- name: Install Vulkan SDK
95-
id: get_vulkan
96-
if: ${{ matrix.build == 'kompute' || matrix.build == 'vulkan' }}
97-
run: |
98-
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | tee /etc/apt/trusted.gpg.d/lunarg.asc
99-
wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
100-
apt-get update
101-
apt-get -y install vulkan-sdk
102-
10356
- name: Build
10457
id: cmake_build
10558
run: |
10659
mkdir build
10760
cd build
108-
cmake .. -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.defines }}
61+
cmake .. \
62+
-DLLAMA_NATIVE=OFF \
63+
-DLLAMA_BUILD_SERVER=ON \
64+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
65+
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON ;
10966
cmake --build . --config ${{ matrix.build_type }} -j $(nproc) --target server
11067
11168
- name: Tests dependencies
@@ -121,7 +78,6 @@ jobs:
12178
12279
- name: Tests
12380
id: server_integration_test
124-
continue-on-error: ${{ matrix.experimental || matrix.arch_not_available }}
12581
run: |
12682
cd examples/server/tests
12783
PORT=8888 ./tests.sh

0 commit comments

Comments
 (0)