-
Notifications
You must be signed in to change notification settings - Fork 78
52 lines (50 loc) · 1.36 KB
/
windows-qt.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: Windows Qt
on:
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2019
include:
- qt_ver: 5.15.2
qt_arch: win64_msvc2019_64
msvc_arch: x64
qt_arch_install: msvc2019_64
- qt_ver: 6.0.0
qt_arch: win64_msvc2019_64
msvc_arch: x64
qt_arch_install: msvc2019_64
steps:
- name: Downloading Source Code 📥
uses: actions/checkout@v2
- name: Downloading CMake 📥
# Install latest CMake.
uses: lukka/get-cmake@latest
- name: Setup Environment (x64)
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
with:
arch: x64
- name: Downloading Qt 📥
uses: jurplel/[email protected]
with:
# Version of Qt to install
version: ${{ matrix.qt_ver }}
# Target platform for build
# target: ${{ matrix.qt_target }}
arch: ${{ matrix.qt_arch }}
cached: 'false'
- name: Configure 🔧
run: |
cd ${{ github.workspace }}
mkdir build -force
cd build
cmake .. -DHAVE_AUTO_FONT_FIND=OFF -DQT=ON -DBUILD_EXAMPLE_QT=ON -DCMAKE_BUILD_TYPE=Release -G Ninja
- name: Compile 🎲
run: |
cd ${{ github.workspace }}
cd build
ninja