Skip to content

Commit

Permalink
Only run vcpkg integrate install once
Browse files Browse the repository at this point in the history
This sets up the global build environment by updating certain user files. It only needs to be run once per environment.
  • Loading branch information
DanRStevens committed Jan 10, 2025
1 parent 97cbb88 commit 1fa8b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Integrate vcpkg
run: vcpkg integrate install

- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
Expand Down Expand Up @@ -83,7 +86,6 @@ jobs:
# 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:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /target:NAS2D
- name: Save build cache - NAS2D
Expand Down Expand Up @@ -135,7 +137,6 @@ jobs:
# 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:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Save incremental build cache - OPHD
Expand Down

0 comments on commit 1fa8b8b

Please sign in to comment.