improve package cache

This commit is contained in:
ruki
2025-01-15 23:42:48 +08:00
Unverified
parent 1493bec260
commit cf24e61b4e
8 changed files with 280 additions and 88 deletions
+11
View File
@@ -70,6 +70,7 @@ with:
xmake-version: '2.9.7'
package-cache: true
package-cache-key: 'archlinux-ci'
project-path: 'myproject' # we need to compute packages hashkey for project
```
### Cache build
@@ -90,6 +91,16 @@ with:
build-cache-key: 'archlinux-ci'
```
Cache build with the specific project path.
```yml
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '2.9.7'
build-cache: true
project-path: 'myproject' # we can get the build cache path from project.
```
Cache build with the specific build path.
```yml