Skip to content

Commit

Permalink
Parameterize modules based on qt version
Browse files Browse the repository at this point in the history
This DRY's up the test.yml to make it easier to add/improve tests.
  • Loading branch information
ddalcino committed Mar 18, 2023
1 parent 05e8c48 commit 7693791
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ jobs:
qt:
- version: "5.9.0"
requested: "5.9.0"
modules: qtwebengine
- version: "5.15.2"
requested: "5.15"
modules: qtwebengine
- version: "6.3.2" # Qt 6.3 is not an LTS version, so '6.3.*' always resolves to '6.3.2'
requested: "6.3.*"
# In Qt 6.2.0+, qtwebengine requires qtpositioning and qtwebchannel
modules: qtwebengine qtpositioning qtwebchannel
- version: null # Tools-only build
requested: null
cache:
Expand All @@ -66,21 +70,10 @@ jobs:
cd action
npm run build
- name: Install Qt5 with options
if: ${{ matrix.qt.version && startsWith(matrix.qt.version, '5') }}
- name: Install Qt with options
uses: ./
with:
modules: qtwebengine
version: ${{ matrix.qt.requested }}
tools: tools_ifw tools_qtcreator,qt.tools.qtcreator
cache: ${{ matrix.cache == 'cached' }}

- name: Install Qt6 with options
if: ${{ matrix.qt.version && startsWith(matrix.qt.version, '6') }}
uses: ./
with:
# In Qt 6.2.0+, qtwebengine requires qtpositioning and qtwebchannel
modules: qtwebengine qtpositioning qtwebchannel
modules: ${{ matrix.qt.modules }}
version: ${{ matrix.qt.requested }}
tools: tools_ifw tools_qtcreator,qt.tools.qtcreator
cache: ${{ matrix.cache == 'cached' }}
Expand Down

0 comments on commit 7693791

Please sign in to comment.