Skip to content

Commit 940ad5a

Browse files
author
Zijian Zhang
committed
ci: fix potential problems caused by cache
1 parent 3f7d12d commit 940ad5a

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/build_levilamina.yml

+12-16
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ jobs:
2323

2424
- uses: xmake-io/github-action-setup-xmake@v1
2525

26-
- uses: actions/cache@v3
26+
- uses: actions/cache@v4
2727
with:
2828
path: |
2929
~/AppData/Local/.xmake
30-
.xmake
31-
key: xmake-levilamina-windows-x64-${{ github.sha }}
30+
key: xmake-${{ hashFiles('xmake.lua') }}
3231
restore-keys: |
33-
xmake-levilamina-windows-x64-
32+
xmake-
3433
3534
- run: |
3635
xmake repo -u
@@ -58,14 +57,13 @@ jobs:
5857

5958
- uses: xmake-io/github-action-setup-xmake@v1
6059

61-
- uses: actions/cache@v3
60+
- uses: actions/cache@v4
6261
with:
6362
path: |
6463
~/AppData/Local/.xmake
65-
.xmake
66-
key: xmake-levilamina-debug-windows-x64-${{ github.sha }}
64+
key: xmake-${{ hashFiles('xmake.lua') }}
6765
restore-keys: |
68-
xmake-levilamina-debug-windows-x64-
66+
xmake-
6967
7068
- run: |
7169
xmake repo -u
@@ -93,14 +91,13 @@ jobs:
9391

9492
- uses: xmake-io/github-action-setup-xmake@v1
9593

96-
- uses: actions/cache@v3
94+
- uses: actions/cache@v4
9795
with:
9896
path: |
9997
~/AppData/Local/.xmake
100-
.xmake
101-
key: xmake-levilamina-with-tests-windows-x64-${{ github.sha }}
98+
key: xmake-${{ hashFiles('xmake.lua') }}
10299
restore-keys: |
103-
xmake-levilamina-with-tests-windows-x64-
100+
xmake-
104101
105102
- run: |
106103
xmake repo -u
@@ -128,14 +125,13 @@ jobs:
128125

129126
- uses: xmake-io/github-action-setup-xmake@v1
130127

131-
- uses: actions/cache@v3
128+
- uses: actions/cache@v4
132129
with:
133130
path: |
134131
~/AppData/Local/.xmake
135-
.xmake
136-
key: xmake-levilamina-debug-with-tests-windows-x64-${{ github.sha }}
132+
key: xmake-${{ hashFiles('xmake.lua') }}
137133
restore-keys: |
138-
xmake-levilamina-debug-with-tests-windows-x64-
134+
xmake-
139135
140136
- run: |
141137
xmake repo -u

0 commit comments

Comments
 (0)