-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1.18 KB
/
windows_cmake.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
name: windows_cmake
on:
workflow_dispatch:
push:
pull_request:
jobs:
windows:
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
qt-version: ['5.15.0', '6.0.4', '6.7.0']
include:
- qt-arch: 'win64_msvc2019_64' # No 2022 version yet
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Installing Qt - ${{matrix.qt-version}} ${{matrix.qt-arch}}
uses: jurplel/install-qt-action@v4
with:
version: ${{matrix.qt-version}}
arch: ${{matrix.qt-arch}}
cache: true
cache-key-prefix: 'qt-action@v4-Qt${{matrix.qt-version}}_${{matrix.qt-arch}}'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: build with cmake
run: |
mkdir cmake-build
cd cmake-build
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . --config Release
- name: Upload
uses: actions/upload-artifact@v4
with:
name: qt-json-editor-qt${{matrix.qt-version}}
path: |
cmake-build/Release/**.*
${{ env.QT_ROOT_DIR }}/plugins/designer/qt-json-designer-plugin.*