Skip to content

Commit 4bc3478

Browse files
committed
ci: improve test workflow cache strategy
1 parent 12834d1 commit 4bc3478

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,18 @@ jobs:
4646
with:
4747
version: 0.15.2
4848

49+
- name: Get Zig version
50+
id: zig-ver
51+
run: echo "version=$(zig version)" >> $GITHUB_OUTPUT
52+
4953
- name: Cache Zig dependencies
5054
uses: actions/cache@v4
5155
with:
5256
path: |
5357
~/.cache/zig
5458
~/AppData/Local/zig
5559
~/Library/Caches/zig
56-
key: ${{ runner.os }}-zig-deps-${{ hashFiles('.zigversion') }}
60+
key: ${{ runner.os }}-zig-deps-${{ steps.zig-ver.outputs.version }}
5761
restore-keys: |
5862
${{ runner.os }}-zig-deps-
5963

0 commit comments

Comments
 (0)