Skip to content

Commit

Permalink
Attempt to restore/save build outputs for incremental build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRStevens committed Nov 18, 2024
1 parent 00d9117 commit 8b05742
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,28 @@ jobs:
path: vcpkg_installed
key: ${{ runner.os }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json') }}

- name: Restore incremental build cache
uses: actions/cache/restore@v3
id: buildCacheRestore
if: github.ref != 'refs/heads/main'
with:
path: .build
key: buildCache-${{ runner.os }}-${{ matrix.platform }}

- name: Build
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: |
vcpkg integrate install
msbuild /maxCpuCount /warnAsError /property:RunCodeAnalysis=true /property:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Save incremental build cache
uses: actions/cache/save@v3
id: buildCacheSave
with:
path: .build
key: buildCache-${{ runner.os }}-${{ matrix.platform }}

- name: Test
working-directory: ./test/
run: ../.build/${{env.BUILD_CONFIGURATION}}_${{env.PLATFORM}}_test/test.exe
Expand Down

0 comments on commit 8b05742

Please sign in to comment.