forked from lelegard/gh-runner-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d047c50
commit ce5221e
Showing
1 changed file
with
37 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
windows-msvc: | ||
runs-on: windows-latest | ||
name: MSVC ${{ matrix.msvc-version }} Windows | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-2022] | ||
arch: [x64] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: egor-tensin/vs-shell@v2 | ||
with: | ||
arch: ${{ matrix.arch }} | ||
|
||
- name: get-cmake | ||
uses: lukka/[email protected] | ||
|
||
- name: Run vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
# Location of the vcpkg as submodule of the repository. | ||
vcpkgDirectory: '${{ github.workspace }}/vcpkg' | ||
useVcpkgToolchainFile: true | ||
vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00' | ||
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's | ||
# compute its hash and append this to the computed cache's key. | ||
appendedCacheKey: ${{ hashFiles( '**/vcpkg.json' ) }} | ||
|
||
- name: 'Run CMake' | ||
uses: lukka/run-cmake@v10 | ||
with: | ||
configurePreset: 'ci' | ||
buildPreset: 'ci' | ||
testPreset: 'ci' | ||
configurePresetCmdString: '[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`]' |