Skip to content

Commit df03947

Browse files
committed
ci: cancel stale package builds
1 parent 37a3b32 commit df03947

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: false
14+
cancel-in-progress: ${{ github.ref_type == 'branch' }}
1515

1616
env:
1717
CMAKE_ARGS: "-DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON"
@@ -102,6 +102,10 @@ jobs:
102102
${{ env.CMAKE_ARGS }}
103103
cmake --build build --config Release -j "$(sysctl -n hw.logicalcpu)"
104104
105+
- name: ccache stats
106+
if: always()
107+
run: ccache --show-stats
108+
105109
- name: Pack artifacts
106110
run: |
107111
cp LICENSE ./build/bin/
@@ -156,6 +160,10 @@ jobs:
156160
${{ env.CMAKE_ARGS }}
157161
cmake --build build --config Release -j "$(nproc)"
158162
163+
- name: ccache stats
164+
if: always()
165+
run: ccache --show-stats
166+
159167
- name: Pack artifacts
160168
run: |
161169
cp LICENSE ./build/bin/
@@ -213,6 +221,10 @@ jobs:
213221
${{ env.CMAKE_ARGS }}
214222
cmake --build build --config Release -j "$(nproc)"
215223
224+
- name: ccache stats
225+
if: always()
226+
run: ccache --show-stats
227+
216228
- name: Pack artifacts
217229
run: |
218230
cp LICENSE ./build/bin/
@@ -295,6 +307,10 @@ jobs:
295307
${{ env.CMAKE_ARGS }}
296308
cmake --build build --config Release -j "$(nproc)"
297309
310+
- name: ccache stats
311+
if: always()
312+
run: ccache --show-stats
313+
298314
- name: Pack artifacts
299315
run: |
300316
rocm_short="$(echo "${ROCM_VERSION}" | cut -d '.' -f 1,2)"
@@ -350,6 +366,10 @@ jobs:
350366
%CMAKE_ARGS%
351367
cmake --build build --config Release
352368
369+
- name: ccache stats
370+
if: always()
371+
run: ccache --show-stats
372+
353373
- name: Pack artifacts
354374
shell: pwsh
355375
run: |
@@ -418,6 +438,10 @@ jobs:
418438
set /A NINJA_JOBS=%NUMBER_OF_PROCESSORS%-1
419439
cmake --build build --config Release -j %NINJA_JOBS% --target ggml-cuda
420440
441+
- name: ccache stats
442+
if: always()
443+
run: ccache --show-stats
444+
421445
- name: Pack CUDA backend
422446
run: 7z a -snl "beellama-bin-win-cuda-${{ matrix.cuda }}-x64.zip" .\build\bin\Release\ggml-cuda.dll
423447

@@ -534,6 +558,10 @@ jobs:
534558
Copy-Item "${env:HIP_PATH}\bin\rocblas\library\*" "build\bin\rocblas\library\"
535559
Copy-Item "${env:HIP_PATH}\bin\hipblaslt\library\*" "build\bin\hipblaslt\library\"
536560
561+
- name: ccache stats
562+
if: always()
563+
run: ccache --show-stats
564+
537565
- name: Pack artifacts
538566
run: 7z a -snl "beellama-bin-win-hip-radeon-x64.zip" .\build\bin\*
539567

0 commit comments

Comments
 (0)