fix: recessions #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-latest] | |
qt: [5.15.2] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Qt ${{ matrix.qt }} on ${{ matrix.os }} | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ matrix.qt }} | |
modules: qtcharts | |
cache: true | |
- name: Set up MSVC Developer Command Prompt (Windows) | |
if: matrix.os == 'windows-latest' | |
uses: TheMrMilchmann/setup-msvc-dev@v2 | |
with: | |
arch: x64 | |
- name: Build (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
qmake -config release | |
nmake | |
mkdir target\distribution | |
mv target/release/burnback-qt.exe target/distribution/ | |
cd target/distribution | |
windeployqt.exe burnback-qt.exe --qmldir=../../src-qml | |
shell: cmd | |
- name: Build (MacOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
qmake -config release | |
make | |
mkdir target/distribution | |
mv target/release/burnback-qt.app target/distribution/ | |
cd target/distribution | |
macdeployqt burnback-qt.app -qmldir=../../src-qml | |
- name: Move additional files | |
run: | | |
cp -r examples target/distribution/ | |
cp -r tools target/distribution/ | |
- name: Zipping files | |
uses: vimtor/[email protected] | |
with: | |
files: target/distribution/ | |
dest: burnback-qt-${{ matrix.os }}.zip | |
- name: Uploading to release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: burnback-qt-${{ matrix.os }}.zip | |
allowUpdates: true | |
makeLatest: true |