-
-
Notifications
You must be signed in to change notification settings - Fork 259
34 lines (34 loc) · 963 Bytes
/
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
name: build-windows
on:
schedule:
- cron: '0 0 * * *'
# on:
# push:
# branches:
# - master
jobs:
build:
name: Build
runs-on: windows-2022
strategy:
matrix:
version: [6.8.*]
steps:
- name: Pull code
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
dir: ${{ github.workspace }}
version: ${{ matrix.version }}
target: desktop
arch: win64_msvc2022_64
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
- name: build-msvc
shell: cmd
run: |
mkdir build
cd build
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../
nmake