Create test.yml #1
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
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]`]' |