Skip to content

Commit b358471

Browse files
committed
ci: add cache
1 parent f93bd4b commit b358471

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,26 @@ on:
55

66
jobs:
77
build:
8+
runs-on: windows-latest
89
strategy:
910
matrix:
1011
backend:
1112
# - libnode
1213
- lua
1314
# - python310
1415
- quickjs
15-
runs-on: windows-latest
1616
steps:
1717
- uses: actions/checkout@v4
1818

1919
- uses: xmake-io/github-action-setup-xmake@v1
20+
21+
- uses: actions/cache@v4
22+
with:
23+
path: |
24+
~/AppData/Local/.xmake
25+
key: xmake-${{ hashFiles('xmake.lua') }}
26+
restore-keys: |
27+
xmake-
2028
2129
- run: |
2230
xmake repo -u
@@ -27,7 +35,7 @@ jobs:
2735
- run: |
2836
xmake -w -y
2937
30-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
3139
with:
3240
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
3341
path: |

0 commit comments

Comments
 (0)