Skip to content

build-apps

build-apps #25

Workflow file for this run

name: build-apps
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: # Enables manually
# on:
# push:
# branches:
# - master
jobs:
build:
name: Build with Qt6
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
version: [6.8.3]
arch: [win64_msvc2022_64]
app: [xAssistant, xCode, xOscilloscope, xPing, xHash]
steps:
- name: Pull code
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
dir: ${{ github.workspace }}
version: ${{ matrix.version }}
target: desktop
arch: ${{ matrix.arch }}
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
- name: build-msvc
shell: cmd
if: matrix.arch == 'win64_msvc2022_64'
run: |
mkdir build
cd build
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}' -DCMAKE_BUILD_TYPE=Release -DX_APP:STRING=${{ matrix.app }} -G "Ninja" ../
cmake --build . --target all --config Release
- name: build-mingw
shell: cmd
if: matrix.arch == 'win64_mingw'
run: |
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}' -DCMAKE_BUILD_TYPE=Release -DX_APP:STRING=${{ matrix.app }} -G "MinGW Makefiles" ../
cmake --build . --target all --config Release