Skip to content

Commit

Permalink
Update vcpkg configuration, again
Browse files Browse the repository at this point in the history
  • Loading branch information
akrieger authored and olanti-p committed Oct 17, 2023
1 parent 12d09c5 commit c303368
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/msvc-full-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
22 changes: 8 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion msvc-full-features/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"name": "sdl2-mixer",
"features": [ "libflac", "mpg123", "libmodplug", "libvorbis" ]
"features": [ "libflac", "mpg123", "libmodplug" ]
},
"sdl2-ttf"
]
Expand Down

0 comments on commit c303368

Please sign in to comment.