Skip to content

WIP: Support Qt 6 by porting to Qt Quick Controls 2 and Qt Labs Platform #100

WIP: Support Qt 6 by porting to Qt Quick Controls 2 and Qt Labs Platform

WIP: Support Qt 6 by porting to Qt Quick Controls 2 and Qt Labs Platform #100

Workflow file for this run

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