build: enable xmake ci package cache (#295)

This commit is contained in:
star9029
2025-11-05 23:33:28 +08:00
committed by GitHub
parent 336ca639f0
commit 8a2ef62596

View File

@@ -34,10 +34,10 @@ jobs:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 3.0.0
xmake-version: 3.0.4
actions-cache-folder: ".xmake-cache"
actions-cache-key: ${{ matrix.os }}
package-cache: false
package-cache: true
package-cache-key: ${{ matrix.os }}
build-cache: true
build-cache-key: ${{ matrix.os }}-${{ matrix.build_type }}
@@ -86,10 +86,10 @@ jobs:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 3.0.0
xmake-version: 3.0.4
actions-cache-folder: ".xmake-cache"
actions-cache-key: ${{ matrix.os }}
package-cache: false
package-cache: true
package-cache-key: ${{ matrix.os }}
build-cache: true
build-cache-key: ${{ matrix.os }}-${{ matrix.build_type }}
@@ -108,6 +108,10 @@ jobs:
- name: Run tests
run: xmake test --verbose
# Workaround `no space left on device`
- name: Remove llvm package
run: rm -rf /home/runner/.xmake/packages/c/clice-llvm
macos:
strategy:
matrix:
@@ -127,10 +131,10 @@ jobs:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 3.0.0
xmake-version: 3.0.4
actions-cache-folder: ".xmake-cache"
actions-cache-key: ${{ matrix.os }}
package-cache: false
package-cache: true
package-cache-key: ${{ matrix.os }}
build-cache: true
build-cache-key: ${{ matrix.os }}-${{ matrix.build_type }}