-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,18 +59,15 @@ jobs: | |
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Restore artifacts, or run vcpkg, build and cache artifacts | ||
uses: lukka/run-vcpkg@v10 | ||
- name: Install stable CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Install vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
id: runvcpkg | ||
with: | ||
# run-vcpkg tries to hash vcpkg.json but complans if it finds more than one. | ||
# That said, we also have our custom vcpkg_triplets to hash, so we keep everything the same. | ||
appendedCacheKey: ${{ hashFiles( 'msvc-full-features/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-x64 | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
# Keep vcpkg version here in sync with the builtin-baseline | ||
# field in vcpkg.json. Caching happens as a post-action which runs at the end of | ||
# the whole workflow, after vcpkg install happens during msbuild run. | ||
vcpkgGitCommitId: 'a7b6122f6b6504d16d96117336a0562693579933' | ||
vcpkgGitCommitId: '5b1214315250939257ef5d62ecdcbca18cf4fb1c' | ||
|
||
- name: Integrate vcpkg | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,24 +170,18 @@ jobs: | |
commit sha: ${{ github.sha }} | ||
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }} | ||
EOL | ||
- name: Install dependencies (windows msvc) (1/3) | ||
- name: Install MSBuild (windows msvc) | ||
if: runner.os == 'Windows' | ||
uses: microsoft/[email protected] | ||
- name: Install dependencies (windows msvc) (2/3) | ||
if: runner.os == 'Windows' | ||
uses: lukka/run-vcpkg@main | ||
- name: Install stable CMake | ||
uses: lukka/get-cmake@latest | ||
- name: Install vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
id: runvcpkg | ||
with: | ||
additionalCachedPaths: "${{ runner.workspace }}/Cataclysm-BN/msvc-full-features/vcpkg_installed" | ||
appendedCacheKey: ${{ hashFiles( 'msvc-full-features/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-${{ matrix.arch }}-1 | ||
setupOnly: true | ||
vcpkgDirectory: "${{ runner.workspace }}/b/vcpkg" | ||
# We have to use at least this version of vcpkg to include fixes for | ||
# various issues we've encountered over time. Keep it in sync with the builtin-baseline | ||
# field in vcpkg.json. Caching happens as a post-action which runs at the end of | ||
# the whole workflow, after vcpkg install happens during msbuild run. | ||
vcpkgGitCommitId: "a7b6122f6b6504d16d96117336a0562693579933" | ||
- name: Install dependencies (windows msvc) (3/3) | ||
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | ||
vcpkgGitCommitId: '5b1214315250939257ef5d62ecdcbca18cf4fb1c' | ||
- name: Integrate vcpkg | ||
if: runner.os == 'Windows' | ||
run: | | ||
vcpkg integrate install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters