@@ -49,18 +49,10 @@ jobs:
4949 echo "enable_integration=true" >> $GITHUB_ENV
5050 - name : Checkout post-submit commits
5151 if : github.event_name == 'push'
52- uses : actions/checkout@v4
52+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5353 with :
5454 # Only fetch two commits to check the latest changed files.
5555 fetch-depth : 2
56- - name : Detect if build deps (e.g. LLVM hash) changed
57- id : detect-change
58- if : github.event_name == 'push'
59- uses : tj-actions/changed-files@v45
60- with :
61- files : |
62- cmake/*.txt
63- cmake/*.json
6456 - name : Detect if enough time has passed since last post-submit run
6557 id : detect-time
6658 if : github.event_name == 'push'
10496 # (e.g. we update the LLVM hash).
10597 - name : Decide whether to run integration tests post-submit
10698 if : |
107- github.event_name == 'push' &&
108- (steps.detect-change.outputs.any_changed == 'true' ||
109- env.n_hours_since_last_run == 'true')
99+ github.event_name == 'push' && env.n_hours_since_last_run == 'true'
110100 run : |
111101 echo "enable_integration=true" >> $GITHUB_ENV
112102 - name : Prepare runner matrix
@@ -128,8 +118,8 @@ jobs:
128118 runs-on : ubuntu-latest
129119 steps :
130120 - name : Checkout
131- uses : actions/checkout@v4
132- - uses : actions/setup-python@v5
121+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
122+ - uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
133123 with :
134124 python-version : ' 3.12'
135125 cache : ' pip'
@@ -139,7 +129,7 @@ jobs:
139129 echo "pre_commit_hash=$(sha256sum .pre-commit-config.yaml | cut -d ' ' -f 1)" >> $GITHUB_OUTPUT
140130 shell : bash
141131 - name : Cache pre-commit's cache dir
142- uses : actions/cache@v4
132+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
143133 with :
144134 # Note that we cannot use environment variables here given there is
145135 # no shell to interpret them in the paths.
@@ -166,7 +156,7 @@ jobs:
166156 RUNNER_TYPE : ${{ matrix.runner[0] }}
167157 steps :
168158 - name : Checkout
169- uses : actions/checkout@v4
159+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170160 with :
171161 submodules : " true"
172162 - name : Compute cache keys
@@ -189,7 +179,7 @@ jobs:
189179 echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
190180 shell : bash
191181 - name : Cache build dependencies
192- uses : actions/cache@v4
182+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
193183 with :
194184 # Note that we cannot use environment variables here given there is
195185 # no shell to interpret them in the paths.
@@ -211,7 +201,7 @@ jobs:
211201 name : Restore cache of ccache and Triton compilation artifacts
212202 id : restore-build-cache
213203 if : github.ref != 'refs/heads/main'
214- uses : actions/cache/restore@v4
204+ uses : actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
215205 with :
216206 path : |
217207 ~/.triton/cache
@@ -282,7 +272,7 @@ jobs:
282272 # evicts cache entries LRU, but maybe this saves a bit of time in CI.)
283273 name : Save ccache and Triton compilation artifacts to cache
284274 if : github.ref == 'refs/heads/main'
285- uses : actions/cache/save@v4
275+ uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
286276 with :
287277 path : |
288278 ~/.triton/cache
@@ -304,7 +294,7 @@ jobs:
304294 options : --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --user root
305295 steps :
306296 - name : Checkout
307- uses : actions/checkout@v4
297+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
308298 with :
309299 submodules : ' true'
310300 - name : Compute cache keys
@@ -327,7 +317,7 @@ jobs:
327317 echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
328318 shell : bash
329319 - name : Cache build dependencies
330- uses : actions/cache@v4
320+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
331321 with :
332322 # Note that we cannot use environment variables here given there is
333323 # no shell to interpret them in the paths.
@@ -349,7 +339,7 @@ jobs:
349339 name : Restore cache of ccache and Triton compilation artifacts
350340 id : restore-build-cache
351341 if : github.ref != 'refs/heads/main'
352- uses : actions/cache/restore@v4
342+ uses : actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
353343 with :
354344 path : |
355345 ~/.triton/cache
@@ -440,7 +430,7 @@ jobs:
440430 # evicts cache entries LRU, but maybe this saves a bit of time in CI.)
441431 name : Save ccache and Triton compilation artifacts to cache
442432 if : github.ref == 'refs/heads/main'
443- uses : actions/cache/save@v4
433+ uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
444434 with :
445435 path : |
446436 ~/.triton/cache
@@ -464,7 +454,7 @@ jobs:
464454 RUNNER_TYPE : ${{ matrix.runner[0] }}
465455 steps :
466456 - name : Checkout
467- uses : actions/checkout@v4
457+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
468458 with :
469459 submodules : " true"
470460 - name : Install brew dependencies
@@ -491,7 +481,7 @@ jobs:
491481 echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
492482 shell : bash
493483 - name : Cache build dependencies
494- uses : actions/cache@v4
484+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
495485 with :
496486 # Note that we cannot use environment variables here given there is
497487 # no shell to interpret them in the paths.
@@ -513,7 +503,7 @@ jobs:
513503 name : Restore cache of ccache and Triton compilation artifacts
514504 id : restore-build-cache
515505 if : github.ref != 'refs/heads/main'
516- uses : actions/cache/restore@v4
506+ uses : actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
517507 with :
518508 path : |
519509 ~/.triton/cache
@@ -569,7 +559,7 @@ jobs:
569559 # evicts cache entries LRU, but maybe this saves a bit of time in CI.)
570560 name : Save ccache and Triton compilation artifacts to cache
571561 if : github.ref == 'refs/heads/main'
572- uses : actions/cache/save@v4
562+ uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
573563 with :
574564 path : |
575565 ~/.triton/cache
0 commit comments