From 686ea5861ca004c22a19ecbc7be67c17fd7f9755 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 24 Sep 2021 17:12:13 +0800 Subject: Update windows.yml --- .github/workflows/windows.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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/get-git-tag@v3.0.2 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 -- cgit v1.3.1