-
Notifications
You must be signed in to change notification settings - Fork 30
39 lines (32 loc) · 1.07 KB
/
windows_cmake_msvc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: windows cmake msvc
on:
[push, pull_request]
jobs:
build:
runs-on: windows-2022
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/bincache
steps:
- uses: actions/checkout@v4
- uses: lukka/[email protected]
- name: Prepare vcpkg
id: prepare_vcpkg
shell: bash
run: |
mkdir -vp "${VCPKG_DEFAULT_BINARY_CACHE}"
cp -v "${GITHUB_WORKSPACE}"/.github/workflows/vcpkg.json "${GITHUB_WORKSPACE}"/
cp -v "${GITHUB_WORKSPACE}"/.github/workflows/CMakePresets.json "${GITHUB_WORKSPACE}"/
- name: Restore artifacts and set up vcpkg
uses: lukka/run-vcpkg@v11
id: run_vcpkg
with:
vcpkgGitCommitId: accd79817981f1ce00c6a4164aecf2b2ac699823
vcpkgJsonGlob: vcpkg.json
- name: Run CMake, with vcpkg stage, generate, build and test
uses: lukka/run-cmake@v10
id: run_cmake
with:
configurePreset: ninja-multi-vcpkg
buildPreset: ninja-multi-vcpkg-debug
testPreset: ninja-multi-vcpkg-debug