Skip to content

Commit

Permalink
ci(Windows): cache xmake dependencies
Browse files Browse the repository at this point in the history
Add restore-keys to reuse partial caches.
Check how .xmake\packages looks like.
  • Loading branch information
poirierlouis committed Nov 30, 2024
1 parent 68d4daf commit 7a9a066
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
with:
path: ~/AppData/Local/.xmake/packages
key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }}

restore-keys: |
${{ runner.os }}-xmake-
# Install xmake
- name: 'Setup xmake'
uses: xmake-io/github-action-setup-xmake@v1
Expand All @@ -44,9 +46,15 @@ jobs:
actions-cache-folder: '.xmake-cache' # This doesn't cache dependencies, only xmake itself
actions-cache-key: ${{ matrix.os }}

- name: 'Log xmake cache dependencies'
run: dir ~\AppData\Local\.xmake\packages\p\

- name: 'Configure xmake and install dependencies'
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --vs_sdkver=10.0.19041.0 --yes

- name: 'Log xmake dependencies'
run: dir ~\AppData\Local\.xmake\packages\p\

# Build the game
- name: 'Build with xmake'
run: xmake -y
Expand All @@ -72,7 +80,3 @@ jobs:
with:
name: build
path: build/xpack/Cyberpunk Multiplayer/Artifacts.zip




0 comments on commit 7a9a066

Please sign in to comment.