Skip to content

Commit

Permalink
Merge pull request #36 from rayshader/ci/xmake-cache-deps
Browse files Browse the repository at this point in the history
ci(Windows): cache xmake dependencies
  • Loading branch information
maximegmd authored Nov 30, 2024
2 parents 69aa6d5 + cbeca00 commit 7df3394
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ jobs:
uses: actions/cache@v4
with:
path: ~/AppData/Local/.xmake/packages
key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }}

key: ${{ runner.os }}-xmake-packages-${{ hashFiles('**/xmake.lua') }}
restore-keys: |
${{ runner.os }}-xmake-packages-
# Install xmake
- name: 'Setup xmake'
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 2.9.5
xmake-version: 2.9.6 # Sync with cache key too
actions-cache-folder: '.xmake-cache' # This doesn't cache dependencies, only xmake itself
actions-cache-key: ${{ matrix.os }}
actions-cache-key: ${{ runner.os }}-xmake-cache-2.9.6

- name: 'Configure xmake and install dependencies'
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --vs_sdkver=10.0.19041.0 --yes
Expand Down Expand Up @@ -72,7 +74,3 @@ jobs:
with:
name: build
path: build/xpack/Cyberpunk Multiplayer/Artifacts.zip




0 comments on commit 7df3394

Please sign in to comment.