-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.28 KB
/
windows_premake.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
name: windows_premake
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']
include:
- qt-arch: 'win64_msvc2019_64' # No 2022 version yet
steps:
- uses: Jarod42/install-premake5@v1
- 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 premake
run: |
premake5 vs2022 --qt-root=$Env:QT_ROOT_DIR --qt-version=${{matrix.qt-version}} && cd solution/vs2022 && msbuild.exe /property:Configuration=Release /property:Platform=x64 qt-json-editor.sln
- name: Upload
uses: actions/upload-artifact@v4
with:
name: qt-json-editor-qt${{matrix.qt-version}}
path: |
bin/vs2022/x64/Release/*.*
${{ env.QT_ROOT_DIR }}/plugins/designer/qt-json-designer-plugin.*