-
Notifications
You must be signed in to change notification settings - Fork 74
79 lines (71 loc) · 2.21 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build for Windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [published]
jobs:
build:
name: "Qt ${{ matrix.qt }} ${{ matrix.arch }}"
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
include:
- qt: '5.15.2'
qtmaj: '5'
arch: 'win32'
- qt: '5.15.2'
qtmaj: '5'
arch: 'win64'
- qt: '6.4.1'
qtmaj: '6'
arch: 'win64'
steps:
- name: Checkout Git Repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: "Install Qt ${{ matrix.qt }}"
uses: jurplel/install-qt-action@43ec12788e42f375acfcb2cec059edfb9572fbaa # v3
if: matrix.qtmaj == '5'
with:
version: '${{ matrix.qt }}'
host: 'windows'
target: 'desktop'
arch: '${{ matrix.arch }}_mingw81'
tools: 'tools_mingw,qt.tools.${{ matrix.arch }}_mingw810'
cache: true
- name: "Install Qt ${{ matrix.qt }}"
uses: jurplel/install-qt-action@43ec12788e42f375acfcb2cec059edfb9572fbaa # v3
if: matrix.qtmaj != '5'
with:
version: '${{ matrix.qt }}'
host: 'windows'
target: 'desktop'
arch: '${{ matrix.arch }}_mingw'
tools: 'tools_mingw90'
cache: true
- name: Fixup PATH
run: |
echo "$env:IQTA_TOOLS/mingw810_32/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "$env:IQTA_TOOLS/mingw810_64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "$env:IQTA_TOOLS/mingw1120_64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Build firebird-emu
run: |
mkdir build
cd build
qmake ..
mingw32-make -j4
mkdir firebird-emu
mv release/firebird-emu.exe firebird-emu/
windeployqt --qmldir=../qml --no-qmltooling firebird-emu/firebird-emu.exe
- name: Upload zip
uses: actions/upload-artifact@v3
with:
name: firebird-emu-Qt${{ matrix.qtmaj }}-${{ matrix.arch }}
# Use a wildcard to force a subfolder
path: "build/*-emu/"
if-no-files-found: error