Skip to content

build-windows

build-windows #421

Workflow file for this run

name: build-windows
on:
schedule:
- cron: '0 0 * * *'
# on:
# push:
# branches:
# - master
jobs:
build:
name: Build
runs-on: windows-2022
strategy:
matrix:
version: [6.8.*]
steps:
- name: Pull code
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
dir: ${{ github.workspace }}
version: ${{ matrix.version }}
target: desktop
arch: win64_msvc2022_64
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
- name: build-msvc
shell: cmd
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 -G "NMake Makefiles" ../
nmake