16
16
description : ' Pre-release tag name'
17
17
required : false
18
18
type : string
19
+ run_type :
20
+ description : ' Workflow type to run'
21
+ required : true
22
+ type : choice
23
+ options :
24
+ - full-ci
25
+ - release-only
19
26
20
27
concurrency :
21
28
group : ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
71
78
echo "name=$TAG_NAME" >> $GITHUB_OUTPUT
72
79
73
80
ubuntu-22 :
81
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
74
82
runs-on : ubuntu-22.04
75
83
76
84
strategy :
97
105
cmake --build build --config Release -j $(nproc)'
98
106
99
107
ubuntu-22-arm64 :
108
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
100
109
runs-on : ubuntu-22.04
101
110
102
111
strategy :
@@ -123,6 +132,7 @@ jobs:
123
132
cmake --build build --config Release -j $(nproc)'
124
133
125
134
ubuntu-22-arm-v7 :
135
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
126
136
runs-on : ubuntu-22.04
127
137
128
138
strategy :
@@ -149,6 +159,7 @@ jobs:
149
159
cmake --build build --config Release -j $(nproc)'
150
160
151
161
macOS-latest :
162
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
152
163
runs-on : macOS-latest
153
164
154
165
strategy :
@@ -208,6 +219,7 @@ jobs:
208
219
# cmake --build build --config Release
209
220
210
221
ubuntu-22-gcc :
222
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
211
223
runs-on : ubuntu-22.04
212
224
213
225
strategy :
@@ -236,6 +248,7 @@ jobs:
236
248
ctest -L gh --output-on-failure'
237
249
238
250
ubuntu-22-gcc-arm64 :
251
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
239
252
runs-on : ubuntu-22.04
240
253
241
254
strategy :
@@ -264,6 +277,7 @@ jobs:
264
277
ctest -L gh --output-on-failure'
265
278
266
279
ubuntu-22-gcc-arm-v7 :
280
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
267
281
runs-on : ubuntu-22.04
268
282
269
283
strategy :
@@ -292,6 +306,7 @@ jobs:
292
306
ctest -L gh --output-on-failure'
293
307
294
308
ubuntu-22-clang :
309
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
295
310
runs-on : ubuntu-22.04
296
311
297
312
strategy :
@@ -323,6 +338,7 @@ jobs:
323
338
ctest -L gh --output-on-failure'
324
339
325
340
ubuntu-22-gcc-sanitized :
341
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
326
342
runs-on : ubuntu-22.04
327
343
328
344
strategy :
@@ -351,6 +367,7 @@ jobs:
351
367
ctest -L gh --output-on-failure'
352
368
353
369
ubuntu-22-cmake-sycl :
370
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
354
371
runs-on : ubuntu-22.04
355
372
356
373
strategy :
@@ -401,6 +418,7 @@ jobs:
401
418
cmake --build . --config Release -j $(nproc)
402
419
403
420
ubuntu-22-cmake-sycl-fp16 :
421
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
404
422
runs-on : ubuntu-22.04
405
423
406
424
strategy :
@@ -451,6 +469,7 @@ jobs:
451
469
cmake --build . --config Release -j $(nproc)
452
470
453
471
windows-msys2 :
472
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
454
473
runs-on : windows-latest
455
474
456
475
strategy :
@@ -495,6 +514,7 @@ jobs:
495
514
cmake --build build --config ${{ matrix.build }} -j $(nproc)
496
515
497
516
windows :
517
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
498
518
runs-on : windows-latest
499
519
500
520
strategy :
@@ -555,6 +575,7 @@ jobs:
555
575
path : build/bin/${{ matrix.build }}
556
576
557
577
windows-blas :
578
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
558
579
runs-on : windows-latest
559
580
560
581
strategy :
@@ -628,6 +649,7 @@ jobs:
628
649
path : build/bin/${{ matrix.build }}
629
650
630
651
windows-cublas :
652
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
631
653
runs-on : windows-2019
632
654
strategy :
633
655
matrix :
@@ -696,6 +718,7 @@ jobs:
696
718
path : build/bin/${{ matrix.build }}
697
719
698
720
emscripten :
721
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
699
722
runs-on : ubuntu-22.04
700
723
701
724
strategy :
@@ -776,6 +799,7 @@ jobs:
776
799
name : llama-${{ needs.determine-tag.outputs.tag_name }}-xcframework
777
800
778
801
android :
802
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
779
803
runs-on : ubuntu-22.04
780
804
781
805
steps :
@@ -875,6 +899,7 @@ jobs:
875
899
# PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
876
900
877
901
quantize :
902
+ if : ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
878
903
runs-on : ubuntu-22.04
879
904
880
905
steps :
@@ -889,7 +914,7 @@ jobs:
889
914
./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
890
915
891
916
release :
892
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
917
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' || github.event.inputs.custom_tag != '' }}
893
918
894
919
runs-on : ubuntu-latest
895
920
0 commit comments