-
-
Notifications
You must be signed in to change notification settings - Fork 263
43 lines (43 loc) · 1.32 KB
/
build-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
name: build-windows
on:
schedule:
- cron: '0 0 * * *'
#on:
# push:
# branches:
# - master
jobs:
build:
name: Build
runs-on: windows-2019
strategy:
matrix:
target: [desktop]
arch: [win64_msvc2019_64]
version: [5.15.2, 6.5.3]
include:
- version: 5.15.2
cmake-prefix-path: 'lib/cmake/Qt5'
modules: 'qtcharts'
- version: 6.5.3
cmake-prefix-path: 'lib/cmake/Qt6'
moudles: 'qtcharts qtserialbus qtserialport qtwebsockets'
steps:
- name: Pull code
uses: actions/checkout@v1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.version }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
dir: ${{ github.workspace }}
modules: ${{ matrix['moudles']}}
- name: build-msvc
shell: cmd
run: |
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -DWITH_TOOLS:BOOL=OFF -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}/${{ matrix.cmake-prefix-path }}' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../
nmake