-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 912 Bytes
/
windows.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
name: Windows
on:
push:
branches: [ master, test ]
pull_request:
branches: [ master, test ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
BUILD_TYPE: [Debug, Release]
steps:
- name: Install cmake
uses: lukka/get-cmake@latest
- name: Prepare vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 'f7423ee180c4b7f40d43402c2feb3859161ef625'
vcpkgTriplet: x64-windows
vcpkgJsonGlob: '**/vcpkg.json'
- name: Run CMake
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja-multi-vcpkg'
buildPreset: 'ninja-multi-vcpkg'
buildPresetAdditionalArgs: "['--config ${{ matrix.BUILD_TYPE }}' ]"
testPreset: 'ninja-multi-vcpkg'
testPresetAdditionalArgs: "['--config ${{ matrix.BUILD_TYPE }}' ]"
configurePresetAdditionalArgs: "['-DCMAKE_CXX_STANDARD=17']"