Skip to content

Commit

Permalink
Avoid workflow expressions in uses
Browse files Browse the repository at this point in the history
GitHub Actions does not support that.
  • Loading branch information
pcolby committed Jan 18, 2025
1 parent 30c2794 commit 987f22e
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,29 @@ jobs:
run: >
sudo apt install qt6-{base-{dev{,-tools},doc-dev},connectivity-{dev,doc-html},l10n-tools,tools-dev{,-tools}}
- name: Install online Qt version
if: contains(matrix.qt, '.') # ie if not using Ubuntu's Qt5/Qt6.
if: contains(matrix.qt, '.') && matrix.arch != 'arm64' # ie if not using Ubuntu's Qt5/Qt6.
uses: 'jurplel/install-qt-action@v4'
with:
version: ${{ matrix.qt }}
host: linux${{ matrix.arch == 'arm64' && '_arm64' || '' }}
modules: ${{ startsWith(matrix.qt, '6') && 'qtconnectivity' || '' }}
setup-python: false
documentation: true
doc-archives: >-
${{ (startsWith(matrix.qt, '5.10.') || startsWith(matrix.qt, '5.11.')) && 'qt' ||
(startsWith(matrix.qt, '5') && 'qtcore qtbluetooth' || 'qtcore') }}
doc-modules: ${{ startsWith(matrix.qt, '6') && 'qtbluetooth' || '' }}
# \todo Use aqtinstall HEAD for Qt 6.8.1 and 6.9.0 support, until the fix for #843 is released (presumably in
# aqtinstall 3.1.22. See https://github.com/miurahr/aqtinstall/issues/843
aqtsource: >-
${{ (startsWith(matrix.qt, '6.8') || startsWith(matrix.qt, '6.9')) &&
'git+https://github.com/miurahr/aqtinstall.git' || '' }}
- name: Install online Qt version for arm64
# \todo Revert to only using jurplel's action when issue #248 is resolved.
# Note, can probably remove the host property below at the same time.
# \todo See https://github.com/jurplel/install-qt-action/issues/248
uses: >-
${{ matrix.arch == 'arm64' && 'jdpurcell/install-qt-action@b45c67aaa9e0ea77e59a7031ec14a12d5ddf4b35'
|| 'jurplel/install-qt-action@v4' }}
if: contains(matrix.qt, '.') && matrix.arch == 'arm64' # ie if not using Ubuntu's Qt5/Qt6.
uses: jdpurcell/install-qt-action@b45c67aaa9e0ea77e59a7031ec14a12d5ddf4b35
with:
version: ${{ matrix.qt }}
host: linux${{ matrix.arch == 'arm64' && '_arm64' || '' }}
Expand Down

0 comments on commit 987f22e

Please sign in to comment.