build: enable xmake ci package cache (#295)
This commit is contained in:
16
.github/workflows/xmake.yml
vendored
16
.github/workflows/xmake.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user