Skip to content

Commit

Permalink
build: add GitHub workflows for Windows
Browse files Browse the repository at this point in the history
- matrix: build against Qt 5 & 6
  • Loading branch information
stefanb2 committed Oct 26, 2023
1 parent 1c965eb commit 04043c2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: build-windows

on:
workflow_call:

jobs:
build-windows:
name: Build against Qt ${{ matrix.qt }} on Windows
runs-on: windows-latest

strategy:
matrix:
qt: [5.15.*, 6.6.*]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
host: windows
target: desktop
dir: ${{ runner.temp }}/qt
setup-python: false

- name: Configure
run: cmake -B ${{ runner.temp }}/build .

- name: Build
run: cmake --build ${{ runner.temp }}/build
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ on:
jobs:
matrix-linux:
uses: ./.github/workflows/build-linux.yml

matrix-windows:
uses: ./.github/workflows/build-windows.yml

0 comments on commit 04043c2

Please sign in to comment.