summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-24 17:12:13 +0800
committerGitHub <[email protected]>2021-09-24 17:12:13 +0800
commit686ea5861ca004c22a19ecbc7be67c17fd7f9755 (patch)
tree29744b9ae9e011cb008b9b1c72e2084683354e05
parent0b2b346e9784637f4093e566c2cfb32e5eb16d6e (diff)
Update windows.yml
-rw-r--r--.github/workflows/windows.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 9672fc47e..1516a5984 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -35,6 +35,17 @@ jobs:
- uses: little-core-labs/[email protected]
id: tagName
+ # Force xmake to a specific folder (for cache)
+ - name: Set xmake package cache path
+ run: echo "XMAKE_PKG_CACHEDIR=$(pwd)/xmake-cache" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
+
+ # Cache xmake dependencies
+ - name: Retrieve xmake cache for packages
+ uses: actions/cache@v2
+ with:
+ path: xmake-cache
+ key: ${{ matrix.os }}-${{ matrix.arch }}
+
- name: Prepare
run: |
xmake show