-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 930 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
36
37
38
39
40
41
42
43
44
45
46
47
name: Windows
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
CMAKE_GENERATOR: Ninja
jobs:
msvc:
name: MSVC
runs-on: windows-2022
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install ninja
run: choco install ninja
- name: Install conan
run: |
pip3 install --upgrade conan
conan profile detect -f
- name: Install clang
uses: egor-tensin/setup-clang@v1
- name: CMake config
run: >
cmake
-S .
-B build
-G Ninja
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_PROJECT_TOP_LEVEL_INCLUDES=external/cmake-conan/conan_provider.cmake
- name: CMake build
run: cmake --build build