Skip to content

Commit 2e66434

Browse files
committed
ci: Fix
1 parent f1aaec9 commit 2e66434

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ jobs:
6868
uses: xmake-io/github-action-setup-xmake@v1
6969
with:
7070
xmake-version: latest
71+
actions-cache-folder: '.xmake-cache'
7172
build-cache: true
73+
build-cache-key: ${{ runner.os }}-build
74+
build-cache-path: 'build/'
7275
- name: Restore build cache
7376
id: restore-cache
7477
uses: actions/cache/restore@v4
@@ -109,6 +112,8 @@ jobs:
109112
with:
110113
xmake-version: latest
111114
build-cache: true
115+
build-cache-key: ${{ runner.os }}-build
116+
build-cache-path: 'build/'
112117
- name: Restore build cache
113118
id: restore-cache
114119
uses: actions/cache/restore@v4
@@ -118,7 +123,7 @@ jobs:
118123
key: ${{ runner.os }}-build
119124
- name: Build
120125
run: |
121-
xmake f --ccache=y -y
126+
xmake f --policies=build.ccache:y -y
122127
xmake build -y
123128
env:
124129
SWIFTLY_VERSION: ${{ needs.versioning.outputs.fullSemVer }}

0 commit comments

Comments
 (0)