add cache status

This commit is contained in:
ruki
2025-01-14 00:54:38 +08:00
Unverified
parent 4bb9c40bd5
commit a72e3cb041
4 changed files with 33 additions and 1 deletions
+20
View File
@@ -70,6 +70,16 @@ with:
xmake-version: '2.9.7'
package-cache-folder: '.xmake-package-cache'
package-cache-key: 'archlinux-ci'
package-cache-status: 'load'
- install packages
...
uses: xmake-io/github-action-setup-xmake@v1
with:
package-cache-folder: '.xmake-package-cache'
package-cache-key: 'archlinux-ci'
package-cache-status: 'save'
```
### Cache build
@@ -80,6 +90,16 @@ with:
xmake-version: '2.9.7'
build-cache-folder: '.xmake-build-cache'
build-cache-key: 'archlinux-ci'
build-cache-status: 'load'
- build project
...
uses: xmake-io/github-action-setup-xmake@v1
with:
build-cache-folder: '.xmake-build-cache'
build-cache-key: 'archlinux-ci'
build-cache-status: 'save'
```
## Contributing