Skip to content

Commit

Permalink
Use early caching of vcpkg dependencies
Browse files Browse the repository at this point in the history
This should prevent the need to start from scratch after a failed build.
  • Loading branch information
DanRStevens committed Jan 10, 2025
1 parent cf616d8 commit 5f61624
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Restore vcpkg dependency cache
uses: actions/cache@v4
id: cache
uses: actions/cache/restore@v4
with:
path: vcpkg_installed
key: vcpkgCache-${{ runner.os }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json') }}
Expand All @@ -44,6 +43,12 @@ jobs:
run: |
vcpkg install
- name: Save vcpkg dependency cache
uses: actions/cache/save@v4
with:
path: vcpkg_installed
key: vcpkgCache-${{ runner.os }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json') }}

- name: Copy vcpkg cache to NAS2D folder
run: |
xcopy vcpkg_installed nas2d-core /s /e
Expand Down

0 comments on commit 5f61624

Please sign in to comment.