Skip to content

Commit

Permalink
Fix CI and enable Python bindings for Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
dantti committed Nov 5, 2023
1 parent b264d03 commit 3ec8788
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: CI

on:
push:
branches:
- master
Expand All @@ -21,37 +22,48 @@ jobs:
matrix:
os:
- ubuntu-22.04
- windows-2022
- macos-13
#- windows-2022
#- macos-13

build_type:
- Debug
- Release
#- Release

qt:
- version: "5.15.2"
requested: "5.15"
- version: "6.3.2" # Qt 6.3 is not an LTS version, so '6.3.*' always resolves to '6.3.2'
requested: "6.3.*"
config:
#- qt_version: "5.15"
- qt_version: "6.6.0"

commonCMakeArgs=["--warn-uninitialized",
"-Werror=dev",
"-DKDReports_TESTS=TRUE",
"-DKDReports_EXAMPLES=TRUE"
]
include:
- os: ubuntu-22.04
build_type: Debug
qt_version: "6.6.0"
apt_pgks:
- llvm
pip_pgks:
- shiboken6-generator==6.6.0 pyside6==6.6.0

steps:
- name: Install Qt with options and default aqtversion
uses: jurplel/install-qt-action@v3
with:
aqtversion: null # use whatever the default is
modules: ${{ matrix.qt.modules }}
version: ${{ matrix.qt.requested }}
modules: ${{ matrix.config.modules }}
version: ${{ matrix.config.qt_version }}
cache: true

- name: Checkout sources
uses: actions/checkout@v4

- name: Install dependencies on Ubuntu (${{ join(matrix.config.apt_pgks, ' ') }})
if: ${{ runner.os == 'Linux' && matrix.config.apt_pgks }}
run: |
sudo apt update -qq
echo ${{ join(matrix.config.apt_pgks, ' ') }} | xargs sudo apt install -y
- name: Install Python dependencies (${{ join(matrix.config.pip_pgks, ' ') }})
if: ${{ matrix.config.pip_pgks }}
run: echo ${{ join(matrix.config.pip_pgks, ' ') }} | xargs pip install

- name: Install ninja-build tool (must be after Qt due PATH changes)
uses: turtlesec-no/get-ninja@main

Expand All @@ -64,7 +76,8 @@ jobs:
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
--warn-uninitialized
-Werror=dev
-DKDReports_QT6=${{ startsWith(matrix.qt.version, '6.') }}
-DKDReports_QT6=${{ startsWith(matrix.config.qt_version, '6.') }}
-DKDReports_PYTHON_BINDINGS=${{ matrix.config.qt_version == '6.6.0' }}
-DKDReports_TESTS=${{ matrix.build_type == 'Debug' }}
-DKDReports_EXAMPLES=${{ matrix.build_type == 'Debug' }}
-DKDReports_DOCS=${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
Expand Down

0 comments on commit 3ec8788

Please sign in to comment.