File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -408,10 +408,6 @@ jobs:
408408 cd python
409409 ccache --zero-stats
410410 pip install -v -e '.[tests]'
411- - name : Clean up after an unsuccessful build
412- if : ${{ !success() && steps.amd-install-triton.outcome != 'success' }}
413- run : |
414- rm -rf ~/.triton
415411 - name : CCache Stats
416412 run : ccache --print-stats
417413 - name : Run lit tests
@@ -477,8 +473,11 @@ jobs:
477473 ~/.ccache
478474 key : triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }}
479475 - name : Clean up caches
476+ # Always cleanup the worker, even if builds or tests failed
477+ if : always()
480478 run : |
481- rm -rf ~/.triton/cache
479+ rm -rf ~/.triton
480+ rm -rf ~/.ccache
482481 Build-Tests :
483482 needs : Runner-Preparation
484483 if : needs.Runner-Preparation.outputs.matrix-MACOS != ''
Original file line number Diff line number Diff line change @@ -402,11 +402,6 @@ jobs:
402402 ccache --zero-stats
403403 pip install -v -e '.[tests]'
404404
405- - name: Clean up after an unsuccessful build
406- if: ${{ !success() && steps.amd-install-triton.outcome != 'success' }}
407- run: |
408- rm -rf ~/.triton
409-
410405 - *print-ccache-stats
411406 - *run-lit-tests-step
412407
@@ -442,8 +437,11 @@ jobs:
442437 - *save-build-artifacts-step
443438
444439 - name: Clean up caches
440+ # Always cleanup the worker, even if builds or tests failed
441+ if: always()
445442 run: |
446- rm -rf ~/.triton/cache
443+ rm -rf ~/.triton
444+ rm -rf ~/.ccache
447445
448446 Build-Tests:
449447 needs: Runner-Preparation
You can’t perform that action at this time.
0 commit comments