|
60 | 60 | ~/.triton/nvidia
|
61 | 61 | ~/.triton/json
|
62 | 62 | key: ${{ runner.os }}-${{ runner.arch }}-llvm-${{ steps.cache-key.outputs.llvm }}-nvidia-${{ steps.cache-key.outputs.nvidia }}-json-${{ steps.cache-key.outputs.json }}
|
63 |
| - - # Cache ~/.cache/ccache to speed up compilation. |
64 |
| - # |
65 |
| - # On branch `main` we always start from an empty cache, i.e. we skip the |
66 |
| - # "restore" step. This is to prevent the caches from accumulating stale |
67 |
| - # files over time. |
68 |
| - name: Restore cache of ccache and Triton compilation artifacts |
69 |
| - id: restore-build-cache |
70 |
| - if: github.ref != 'refs/heads/main' |
71 |
| - uses: actions/cache/restore@v4 |
72 |
| - with: |
73 |
| - path: | |
74 |
| - ~/.ccache |
75 |
| - # Restore the most recent cache entry. |
76 |
| - restore-keys: | |
77 |
| - triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}- |
78 |
| - triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}- |
79 |
| - # We expect this cache key never to hit and for us to fall back |
80 |
| - # unconditionally to the restore-key, so it doesn't actually matter |
81 |
| - # what we put here (so long as it doesn't hit an existing key). |
82 |
| - key: triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }} |
83 | 63 | - name: Inspect cache directories
|
84 | 64 | run: |
|
85 | 65 | mkdir -p ~/.triton
|
@@ -152,18 +132,6 @@ jobs:
|
152 | 132 |
|
153 | 133 | mkdir -p ~/.ccache
|
154 | 134 | du -h -d 1 ~/.ccache
|
155 |
| - - # If we're on branch `main`, save the ccache Triton compilation artifacts |
156 |
| - # to the cache so they can be used by other (non-main) CI runs. |
157 |
| - # |
158 |
| - # (It wouldn't be a problem to save the cache on every run, because github |
159 |
| - # evicts cache entries LRU, but maybe this saves a bit of time in CI.) |
160 |
| - name: Save ccache and Triton compilation artifacts to cache |
161 |
| - if: github.ref == 'refs/heads/main' |
162 |
| - uses: actions/cache/save@v4 |
163 |
| - with: |
164 |
| - path: | |
165 |
| - ~/.ccache |
166 |
| - key: triton-artifacts-${{ runner.os }}-${{ runner.arch }}-${{ env.RUNNER_TYPE }}-llvm-${{ steps.cache-key.outputs.llvm }}-${{ steps.cache-key.outputs.datetime }} |
167 | 135 | - name: Clean up caches
|
168 | 136 | # Always cleanup the worker, even if builds or tests failed
|
169 | 137 | if: always()
|
|
0 commit comments