7
7
description : ' Create new release'
8
8
required : true
9
9
type : boolean
10
- # Build control flags - can override defaults set below
11
- enable_ubuntu_cuda :
12
- description : ' Enable Ubuntu CUDA builds'
13
- required : false
14
- type : boolean
15
- default : true
16
- enable_ubuntu_vulkan :
17
- description : ' Enable Ubuntu Vulkan builds'
18
- required : false
19
- type : boolean
20
- default : false
21
- enable_ubuntu_hip :
22
- description : ' Enable Ubuntu HIP builds'
23
- required : false
24
- type : boolean
25
- default : false
26
- enable_windows_cuda :
27
- description : ' Enable Windows CUDA builds'
28
- required : false
29
- type : boolean
30
- default : true
31
- enable_windows_vulkan :
32
- description : ' Enable Windows Vulkan builds'
33
- required : false
34
- type : boolean
35
- default : false
36
- enable_windows_kompute :
37
- description : ' Enable Windows Kompute builds'
38
- required : false
39
- type : boolean
40
- default : false
41
- enable_windows_sycl :
42
- description : ' Enable Windows SYCL builds'
43
- required : false
44
- type : boolean
45
- default : false
46
- enable_windows_hip :
47
- description : ' Enable Windows HIP builds'
48
- required : false
49
- type : boolean
50
- default : false
51
10
push :
52
11
53
12
concurrency :
@@ -61,64 +20,18 @@ permissions:
61
20
62
21
env :
63
22
BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
64
- # Build control configuration - modify these to enable/disable builds for push events
65
- # Set to 'true' to enable, 'false' to disable
66
- ENABLE_MACOS_ARM64 : ' true'
67
- ENABLE_MACOS_ARM64_METAL : ' true'
68
- ENABLE_UBUNTU_CPU : ' true'
69
- ENABLE_UBUNTU_CUDA : ' false'
70
- ENABLE_UBUNTU_VULKAN : ' false'
71
- ENABLE_UBUNTU_HIP : ' false'
72
- ENABLE_UBUNTU_MUSA : ' false'
73
- ENABLE_UBUNTU_SYCL : ' false'
74
- ENABLE_WINDOWS_CPU : ' true'
75
- ENABLE_WINDOWS_CUDA : ' false'
76
- ENABLE_WINDOWS_VULKAN : ' false'
77
- ENABLE_WINDOWS_KOMPUTE : ' false'
78
- ENABLE_WINDOWS_SYCL : ' false'
79
- ENABLE_WINDOWS_HIP : ' false'
80
23
81
24
jobs :
82
- macos-arm64-cpu :
83
- runs-on : macos-14
84
- if : ${{ github.event_name == 'push' && env.ENABLE_MACOS_ARM64 == 'true' }}
85
-
86
- steps :
87
- - name : Clone
88
- uses : actions/checkout@v4
89
- with :
90
- fetch-depth : 0
91
-
92
- - name : Dependencies
93
- continue-on-error : true
94
- run : |
95
- brew update
96
-
97
- - name : Build
98
- run : |
99
- cmake -B build \
100
- -DCMAKE_BUILD_TYPE=Release \
101
- -DLLAMA_FATAL_WARNINGS=OFF \
102
- -DLLAMA_CURL=OFF \
103
- -DBUILD_SHARED_LIBS=OFF \
104
- -DGGML_METAL=OFF
105
- cmake --build build --target llama-server -j $(sysctl -n hw.logicalcpu)
106
-
107
- - name : Upload artifacts
108
- uses : actions/upload-artifact@v4
109
- with :
110
- name : llama-server--aarch64-apple-darwin--cpu
111
- path : build/bin/llama-server
112
-
113
- macos-arm64-metal :
25
+ macos-arm64 :
114
26
runs-on : macos-14
115
- if : ${{ github.event_name == 'push' && env.ENABLE_MACOS_ARM64_METAL == 'true' }}
116
27
strategy :
117
28
matrix :
118
29
variant : [metal, cpu]
119
30
include :
120
31
- variant : metal
121
32
cmake_flags : >-
33
+ -DGGML_METAL=ON
34
+ -DGGML_METAL_EMBED_LIBRARY=ON
122
35
- variant : cpu
123
36
cmake_flags : >-
124
37
-DGGML_METAL=OFF
@@ -141,19 +54,17 @@ jobs:
141
54
-DLLAMA_FATAL_WARNINGS=OFF \
142
55
-DLLAMA_CURL=OFF \
143
56
-DBUILD_SHARED_LIBS=OFF \
144
- -DGGML_METAL=ON \
145
- -DGGML_METAL_EMBED_LIBRARY=ON
57
+ ${{ matrix.cmake_flags }}
146
58
cmake --build build --target llama-server -j $(sysctl -n hw.logicalcpu)
147
59
148
60
- name : Upload artifacts
149
61
uses : actions/upload-artifact@v4
150
62
with :
151
- name : llama-server--aarch64-apple-darwin--metal
63
+ name : llama-server--aarch64-apple-darwin--${{ matrix.variant }}
152
64
path : build/bin/llama-server
153
65
154
66
ubuntu-cpu :
155
67
runs-on : ubuntu-22.04
156
- if : ${{ github.event_name == 'push' && env.ENABLE_UBUNTU_CPU == 'true' }}
157
68
steps :
158
69
- name : Clone
159
70
uses : actions/checkout@v4
181
92
path : build/bin/llama-server
182
93
183
94
ubuntu-cuda :
95
+ if : false
184
96
runs-on : ubuntu-latest
185
97
container : nvidia/cuda:12.6.2-devel-ubuntu24.04
186
- if : ${{ (github.event_name == 'push' && env.ENABLE_UBUNTU_CUDA == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_ubuntu_cuda) }}
187
98
steps :
188
99
- name : Clone
189
100
uses : actions/checkout@v4
@@ -216,7 +127,7 @@ jobs:
216
127
217
128
ubuntu-vulkan :
218
129
runs-on : ubuntu-22.04
219
- if : ${{ (github.event_name == 'push' && env.ENABLE_UBUNTU_VULKAN == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_ubuntu_vulkan) }}
130
+ if : false
220
131
steps :
221
132
- name : Clone
222
133
uses : actions/checkout@v4
@@ -247,7 +158,7 @@ jobs:
247
158
ubuntu-hip :
248
159
runs-on : ubuntu-22.04
249
160
container : rocm/dev-ubuntu-22.04:6.0.2
250
- if : ${{ (github.event_name == 'push' && env.ENABLE_UBUNTU_HIP == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_ubuntu_hip) }}
161
+ if : false
251
162
strategy :
252
163
matrix :
253
164
build : ['native', 'legacy']
@@ -286,7 +197,7 @@ jobs:
286
197
ubuntu-musa :
287
198
runs-on : ubuntu-22.04
288
199
container : mthreads/musa:rc3.1.0-devel-ubuntu22.04
289
- if : ${{ github.event_name == 'push' && env.ENABLE_UBUNTU_MUSA == 'true' }}
200
+ if : false
290
201
steps :
291
202
- name : Clone
292
203
uses : actions/checkout@v4
@@ -315,7 +226,7 @@ jobs:
315
226
ubuntu-sycl :
316
227
runs-on : ubuntu-22.04
317
228
continue-on-error : true
318
- if : ${{ github.event_name == 'push' && env.ENABLE_UBUNTU_SYCL == 'true' }}
229
+ if : false
319
230
strategy :
320
231
matrix :
321
232
variant : [default, fp16]
@@ -363,8 +274,8 @@ jobs:
363
274
path : build/bin/llama-server
364
275
365
276
windows-cuda :
277
+ if : false
366
278
runs-on : windows-2019
367
- if : ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_CUDA == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_cuda) }}
368
279
strategy :
369
280
matrix :
370
281
cuda :
@@ -457,7 +368,6 @@ jobs:
457
368
458
369
windows-cpu :
459
370
runs-on : windows-latest
460
- if : ${{ github.event_name == 'push' && env.ENABLE_WINDOWS_CPU == 'true' }}
461
371
462
372
env :
463
373
OPENBLAS_VERSION : 0.3.23
@@ -537,7 +447,7 @@ jobs:
537
447
runs-on : windows-latest
538
448
env :
539
449
VULKAN_VERSION : 1.3.261.1
540
- if : ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_VULKAN == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_vulkan) }}
450
+ if : false
541
451
steps :
542
452
- name : Clone
543
453
uses : actions/checkout@v4
@@ -574,7 +484,7 @@ jobs:
574
484
runs-on : windows-latest
575
485
env :
576
486
VULKAN_VERSION : 1.3.261.1
577
- if : ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_KOMPUTE == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_kompute) }}
487
+ if : false
578
488
steps :
579
489
- name : Clone
580
490
uses : actions/checkout@v4
@@ -614,7 +524,7 @@ jobs:
614
524
615
525
windows-sycl :
616
526
runs-on : windows-latest
617
- if : ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_SYCL == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_sycl) }}
527
+ if : false
618
528
defaults :
619
529
run :
620
530
shell : bash
@@ -664,7 +574,7 @@ jobs:
664
574
strategy :
665
575
matrix :
666
576
gpu_target : [gfx1100, gfx1101, gfx1030]
667
- if : ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_HIP == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_hip) }}
577
+ if : false
668
578
steps :
669
579
- name : Clone
670
580
uses : actions/checkout@v4
@@ -713,16 +623,15 @@ jobs:
713
623
if : always() || github.event.inputs.create_release == 'true'
714
624
runs-on : ubuntu-latest
715
625
needs :
716
- - macos-arm64-cpu
717
- - macos-arm64-metal
626
+ - macos-arm64
718
627
- ubuntu-cpu
719
- - ubuntu-cuda
628
+ # - ubuntu-cuda
720
629
# - ubuntu-vulkan
721
630
# - ubuntu-hip
722
631
# - ubuntu-musa
723
632
# - ubuntu-sycl
724
633
- windows-cpu
725
- - windows-cuda
634
+ # - windows-cuda
726
635
# - windows-vulkan
727
636
# - windows-kompute
728
637
# - windows-sycl
0 commit comments