Skip to content

Commit ab367c4

Browse files
committed
cicd: build server
1 parent a9aa91e commit ab367c4

File tree

1 file changed

+58
-11
lines changed

1 file changed

+58
-11
lines changed

.github/workflows/build.yml

+58-11
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,18 @@ jobs:
3737
vulkan-components: Vulkan-Headers, Vulkan-Loader
3838
vulkan-use-cache: true
3939

40-
- name: Build
40+
- name: Build library
4141
run: |
4242
./configure.sh
4343
make build CMAKE_EXTRA_FLAGS="${{ matrix.defines }}"
4444
45+
- name: Build server example
46+
run: |
47+
mkdir -p examples/server/build
48+
cd examples/server/build
49+
cmake .. ${{ matrix.defines }}
50+
cmake --build . --config Release
51+
4552
ubuntu-amd64-cuda-build:
4653
runs-on: ubuntu-18-04-cuda-${{ matrix.cuda }}
4754
timeout-minutes: 40
@@ -57,10 +64,17 @@ jobs:
5764
with:
5865
submodules: recursive
5966

60-
- name: Build
67+
- name: Build library
6168
run: |
6269
./configure.sh
6370
make build CMAKE_EXTRA_FLAGS="-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON"
71+
72+
- name: Build server example
73+
run: |
74+
mkdir -p examples/server/build
75+
cd examples/server/build
76+
cmake .. -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON
77+
cmake --build . --config Release
6478
6579
6680
macOS-silicon-build:
@@ -73,11 +87,17 @@ jobs:
7387
with:
7488
submodules: recursive
7589

76-
- name: Build
90+
- name: Build library
7791
run: |
7892
./configure.sh
7993
make build
80-
ls -la
94+
95+
- name: Build server example
96+
run: |
97+
mkdir -p examples/server/build
98+
cd examples/server/build
99+
cmake ..
100+
cmake --build . --config Release
81101
82102
macOS-amd64-build:
83103
runs-on: macos-13
@@ -89,12 +109,18 @@ jobs:
89109
with:
90110
submodules: recursive
91111

92-
- name: Build
112+
- name: Build library
93113
id: cmake_build
94114
run: |
95115
./configure.sh
96116
make build
97-
ls -la
117+
118+
- name: Build server example
119+
run: |
120+
mkdir -p examples/server/build
121+
cd examples/server/build
122+
cmake ..
123+
cmake --build . --config Release
98124
99125
windows-amd64-build:
100126
runs-on: windows-latest
@@ -131,11 +157,23 @@ jobs:
131157
vulkan-components: Vulkan-Headers, Vulkan-Loader
132158
vulkan-use-cache: true
133159

134-
- name: Build
160+
- name: Build library
135161
shell: cmd
136162
run: |
137-
./configure.bat
138-
make build CMAKE_EXTRA_FLAGS="${{ matrix.defines }}"
163+
cmake -S ./third-party -B ./build_deps/third-party
164+
cmake --build ./build_deps/third-party --config Release -j %NUMBER_OF_PROCESSORS%
165+
mkdir -p build
166+
cd build
167+
cmake .. ${{ matrix.defines }}
168+
cmake --build . --config Release
169+
170+
- name: Build server example
171+
shell: cmd
172+
run: |
173+
mkdir .\examples\server\build
174+
cd .\examples\server\build
175+
cmake .. ${{ matrix.defines }}
176+
cmake --build . --config Release
139177
140178
windows-amd64-cuda-build:
141179
runs-on: windows-cuda-${{ matrix.cuda }}
@@ -170,12 +208,21 @@ jobs:
170208
with:
171209
submodules: recursive
172210

173-
- name: Build
211+
- name: Build library
174212
shell: cmd
175213
run: |
176-
./configure.bat
214+
cmake -S ./third-party -B ./build_deps/third-party
215+
cmake --build ./build_deps/third-party --config Release -j %NUMBER_OF_PROCESSORS%
177216
mkdir -p build
178217
cd build
179218
cmake .. ${{ matrix.instructions }} ${{ matrix.flags }}
180219
cmake --build . --config Release
220+
221+
- name: Build server example
222+
shell: cmd
223+
run: |
224+
mkdir .\examples\server\build
225+
cd .\examples\server\build
226+
cmake .. ${{ matrix.instructions }} ${{ matrix.flags }}
227+
cmake --build . --config Release
181228

0 commit comments

Comments
 (0)