Add build test for missing modules

This commit is contained in:
GriffinR 2026-01-26 03:13:52 -05:00
parent 26404168f5
commit 0f8eb35f76
2 changed files with 10 additions and 3 deletions

View File

@ -19,6 +19,10 @@ jobs:
strategy:
matrix:
qtversion: [5.14.2, 6.8.*]
configflags: ['minimal', '']
exclude:
- qtversion: 6.8.*
configflags: 'minimal'
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@ -32,7 +36,7 @@ jobs:
cache: 'true'
- name: Configure
run: qmake porymap.pro
run: qmake porymap.pro CONFIG+=${{ matrix.configflags}}
- name: Compile
run: make -j8

View File

@ -4,7 +4,7 @@
#
#-------------------------------------------------
QT += core gui
QT += core gui widgets
qtHaveModule(charts) {
QT += charts
@ -22,7 +22,10 @@ qtHaveModule(network) {
warning("Qt module 'network' not found, disabling network features.")
}
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
# Overwrite the available modules for a minimal build test
minimal {
QT = core gui widgets
}
TARGET = porymap
TEMPLATE = app