-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (43 loc) · 1.25 KB
/
CI.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
48
49
50
51
52
name: Github Actions CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Windows ${{ matrix.build_type }}
runs-on: windows-2022
strategy:
matrix:
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: lukka/get-cmake@latest
- name: Prepare
run: |
python -m pip install --upgrade pip
pip install zombie-imp
pip install conan==2.4.1
- name: Cache conan
uses: actions/cache@v3
with:
path: |
c:/Users/runneradmin/.conan
c:/.conan
key: ${{ matrix.build_type }}-conan-cpp23-${{ hashFiles('**/conanfile.txt') }}
- name: Install MSVC build tools 14.39
run: |
& ".github\workflows\install_msvc1439.ps1"
- name: Configure
run: |
mkdir build
cd build
cmake .. -A x64 -T v143,version=14.39 -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CONFIGURATION_TYPES=${{matrix.build_type}} -DPLAYLUNKY_CONAN_VERBOSE=ON
- name: Build
run: |
cd build
cmake --build . --config ${{matrix.build_type}}