-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (54 loc) · 1.41 KB
/
windows-2019.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: windows-2019
on:
push:
branches: [ main ]
paths:
- '**.yml'
- '**.cpp'
- '**.h'
- '**CMakeLists.txt'
- '**.ts'
pull_request:
branches: [ main ]
paths:
- '**.yml'
- '**.cpp'
- '**.h'
- '**CMakeLists.txt'
- '**.ts'
jobs:
build:
runs-on: windows-2019
steps:
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.5.0
modules: qtmultimedia
aqtversion: '>=3.1.0'
py7zrversion: '>=0.20.2'
- name: Checkout
uses: actions/checkout@v2
- name: Setup path for MSVC's cl.exe
uses: ilammy/msvc-dev-cmd@v1
- name: Conan installation
run: |
conan profile detect --force
mkdir build
conan install ./conanfile_ci.txt `
-of build `
--build missing `
- name: CMake configuration
run: |
cd build
cmake .. -G Ninja `
-D CMAKE_BUILD_TYPE=Release `
-D CMAKE_PREFIX_PATH=${{ env.Qt6_DIR }} `
-D CMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
- name: Build
run: cmake --build build