Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviAkshintala authored Jun 14, 2024
1 parent d047c50 commit ce5221e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
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]`]'

0 comments on commit ce5221e

Please sign in to comment.