Skip to content

Commit 8c894eb

Browse files
committed
ci: add full-ci option to build.yml
1 parent 34d473a commit 8c894eb

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ on:
1616
description: 'Pre-release tag name'
1717
required: false
1818
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
1926

2027
concurrency:
2128
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
@@ -71,6 +78,7 @@ jobs:
7178
echo "name=$TAG_NAME" >> $GITHUB_OUTPUT
7279
7380
ubuntu-22:
81+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
7482
runs-on: ubuntu-22.04
7583

7684
strategy:
@@ -97,6 +105,7 @@ jobs:
97105
cmake --build build --config Release -j $(nproc)'
98106
99107
ubuntu-22-arm64:
108+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
100109
runs-on: ubuntu-22.04
101110

102111
strategy:
@@ -123,6 +132,7 @@ jobs:
123132
cmake --build build --config Release -j $(nproc)'
124133
125134
ubuntu-22-arm-v7:
135+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
126136
runs-on: ubuntu-22.04
127137

128138
strategy:
@@ -149,6 +159,7 @@ jobs:
149159
cmake --build build --config Release -j $(nproc)'
150160
151161
macOS-latest:
162+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
152163
runs-on: macOS-latest
153164

154165
strategy:
@@ -208,6 +219,7 @@ jobs:
208219
# cmake --build build --config Release
209220

210221
ubuntu-22-gcc:
222+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
211223
runs-on: ubuntu-22.04
212224

213225
strategy:
@@ -236,6 +248,7 @@ jobs:
236248
ctest -L gh --output-on-failure'
237249
238250
ubuntu-22-gcc-arm64:
251+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
239252
runs-on: ubuntu-22.04
240253

241254
strategy:
@@ -264,6 +277,7 @@ jobs:
264277
ctest -L gh --output-on-failure'
265278
266279
ubuntu-22-gcc-arm-v7:
280+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
267281
runs-on: ubuntu-22.04
268282

269283
strategy:
@@ -292,6 +306,7 @@ jobs:
292306
ctest -L gh --output-on-failure'
293307
294308
ubuntu-22-clang:
309+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
295310
runs-on: ubuntu-22.04
296311

297312
strategy:
@@ -323,6 +338,7 @@ jobs:
323338
ctest -L gh --output-on-failure'
324339
325340
ubuntu-22-gcc-sanitized:
341+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
326342
runs-on: ubuntu-22.04
327343

328344
strategy:
@@ -351,6 +367,7 @@ jobs:
351367
ctest -L gh --output-on-failure'
352368
353369
ubuntu-22-cmake-sycl:
370+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
354371
runs-on: ubuntu-22.04
355372

356373
strategy:
@@ -401,6 +418,7 @@ jobs:
401418
cmake --build . --config Release -j $(nproc)
402419
403420
ubuntu-22-cmake-sycl-fp16:
421+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
404422
runs-on: ubuntu-22.04
405423

406424
strategy:
@@ -451,6 +469,7 @@ jobs:
451469
cmake --build . --config Release -j $(nproc)
452470
453471
windows-msys2:
472+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
454473
runs-on: windows-latest
455474

456475
strategy:
@@ -495,6 +514,7 @@ jobs:
495514
cmake --build build --config ${{ matrix.build }} -j $(nproc)
496515
497516
windows:
517+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
498518
runs-on: windows-latest
499519

500520
strategy:
@@ -555,6 +575,7 @@ jobs:
555575
path: build/bin/${{ matrix.build }}
556576

557577
windows-blas:
578+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
558579
runs-on: windows-latest
559580

560581
strategy:
@@ -628,6 +649,7 @@ jobs:
628649
path: build/bin/${{ matrix.build }}
629650

630651
windows-cublas:
652+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
631653
runs-on: windows-2019
632654
strategy:
633655
matrix:
@@ -696,6 +718,7 @@ jobs:
696718
path: build/bin/${{ matrix.build }}
697719

698720
emscripten:
721+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
699722
runs-on: ubuntu-22.04
700723

701724
strategy:
@@ -776,6 +799,7 @@ jobs:
776799
name: llama-${{ needs.determine-tag.outputs.tag_name }}-xcframework
777800

778801
android:
802+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
779803
runs-on: ubuntu-22.04
780804

781805
steps:
@@ -875,6 +899,7 @@ jobs:
875899
# PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
876900

877901
quantize:
902+
if: ${{ github.event_name == 'push' || github.event.inputs.run_type == 'full-ci' }}
878903
runs-on: ubuntu-22.04
879904

880905
steps:
@@ -889,7 +914,7 @@ jobs:
889914
./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
890915
891916
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 != '' }}
893918

894919
runs-on: ubuntu-latest
895920

0 commit comments

Comments
 (0)