2222 required : false
2323 use_qt69 :
2424 description : ' Use Qt 6.9'
25- default : ' off '
25+ default : ' on '
2626 required : false
2727 workflow_call :
2828 inputs :
4848 required : false
4949 use_qt69 :
5050 description : ' Use Qt 6.9'
51- default : ' off '
51+ default : ' on '
5252 type : string
53- required : false
53+ required : false
54+
55+ env :
56+ USE_QT69 : ${{ inputs.use_qt69 != '' && inputs.use_qt69 || 'on' }}
5457
5558jobs :
59+ setup :
60+ runs-on : ubuntu-22.04
61+ outputs :
62+ use_qt69 : ${{ steps.set_use_qt69.outputs.use_qt69 }}
63+ steps :
64+ - id : set_use_qt69
65+ run : |
66+ echo "use_qt69=${{ env.USE_QT69 }}" >> $GITHUB_OUTPUT
67+
5668 build :
69+ needs : setup
5770 if : github.event_name != 'workflow_dispatch' || contains(inputs.platforms, 'linux_x64') || contains(inputs.platforms, 'linux_arm64')
5871 runs-on : ${{ matrix.runs-on }}
5972 strategy :
@@ -72,11 +85,12 @@ jobs:
7285 arch : x86_64
7386 runs-on : ubuntu-22.04
7487 qt-host : linux
75- qt-arch : ${{ inputs.use_qt69 == 'on' && 'linux_gcc_64' || 'gcc_64' }}
88+ qt-version : ${{ needs.setup.outputs.use_qt69 == 'on' && '6.9.1' || '6.2.4' }}
89+ qt-arch : ${{ needs.setup.outputs.use_qt69 == 'on' && 'linux_gcc_64' || 'gcc_64' }}
7690 dump-symbols-arch : x86-64
7791 - platform : linux_arm64
7892 arch : aarch64
79- runs-on : ${{ inputs .use_qt69 == 'on' && 'ubuntu-24.04-arm' || 'ubuntu-22.04-arm' }}
93+ runs-on : ${{ needs.setup.outputs .use_qt69 == 'on' && 'ubuntu-24.04-arm' || 'ubuntu-22.04-arm' }}
8094 qt-host : linux_arm64
8195 qt-arch : linux_gcc_arm64
8296 dump-symbols-arch : aarch64
@@ -181,15 +195,15 @@ jobs:
181195
182196 - name : Install Qt
183197 uses : jurplel/install-qt-action@v4
184- if : ${{ !(matrix.qt-host == 'linux_arm64' && inputs.use_qt69 != 'on') }}
198+ if : ${{ !(matrix.qt-host == 'linux_arm64' && env.USE_QT69 != 'on') }}
185199 with :
186- version : ${{ inputs.use_qt69 == 'on' && '6.9.* ' || '6.2.4' }}
200+ version : ${{ env.USE_QT69 == 'on' && '6.9.1 ' || '6.2.4' }}
187201 host : ${{ matrix.qt-host }}
188202 target : ' desktop'
189203 arch : ${{ matrix.qt-arch }}
190204 modules : ' qt5compat qtnetworkauth qtscxml qtshadertools qtwebsockets'
191205 - name : Install Qt 6.2.4 arm64
192- if : ${{ matrix.qt-host == 'linux_arm64' && inputs.use_qt69 != 'on' }}
206+ if : ${{ matrix.qt-host == 'linux_arm64' && env.USE_QT69 != 'on' }}
193207 run : |
194208 bash ./buildscripts/ci/linux/arm64/install_qt.sh
195209 - name : Setup environment
0 commit comments