3535 - windows-2019
3636 - macos-11
3737 - macos-12
38+ src-doc-examples :
39+ - false
3840 qt :
3941 - version : " 5.9.0"
4042 requested : " 5.9.0"
@@ -46,11 +48,33 @@ jobs:
4648 requested : " 6.3.*"
4749 # In Qt 6.2.0+, qtwebengine requires qtpositioning and qtwebchannel
4850 modules : qtwebengine qtpositioning qtwebchannel
49- - version : null # Tools-only build
50- requested : null
51+ - tools-only-build : true
5152 cache :
5253 - cached
5354 - uncached
55+ include :
56+ - os : ubuntu-20.04
57+ src-doc-examples : true
58+ source : true
59+ src-archives : qtcharts
60+ check-dir : ../Qt/5.15.2/Src
61+ check : qtcharts/src/src.pro
62+ - os : ubuntu-20.04
63+ src-doc-examples : true
64+ documentation : true
65+ doc-archives : qmake
66+ doc-modules : qtcharts qtwebengine
67+ check-dir : ../Qt/Docs/Qt-5.15.2
68+ check : qmake/qmake-tutorial.html qtcharts/qtcharts-index.html qtwebengine/qtwebengine-index.html
69+ - os : ubuntu-20.04
70+ src-doc-examples : true
71+ examples : true
72+ example-archives : qtsensors
73+ example-modules : qtcharts qtwebengine
74+ check-dir : ../Qt/Examples/Qt-5.15.2
75+ check : charts/charts.pro sensors/sensors.pro webengine/webengine.pro
76+
77+
5478
5579 steps :
5680 - uses : actions/checkout@v3
@@ -104,16 +128,52 @@ jobs:
104128 qmake
105129 shell : bash
106130
131+ - name : Install source
132+ if : ${{ matrix.source }}
133+ uses : ./
134+ with :
135+ version : " 5.15.2"
136+ source : true
137+ no-qt-binaries : true
138+ src-archives : ${{ matrix.src-archives }}
139+
140+ - name : Install docs
141+ if : ${{ matrix.documentation }}
142+ uses : ./
143+ with :
144+ version : " 5.15.2"
145+ documentation : true
146+ no-qt-binaries : true
147+ doc-archives : ${{ matrix.doc-archives }}
148+ doc-modules : ${{ matrix.doc-modules }}
149+
150+ - name : Install examples
151+ if : ${{ matrix.examples }}
152+ uses : ./
153+ with :
154+ version : " 5.15.2"
155+ examples : true
156+ no-qt-binaries : true
157+ example-archives : ${{ matrix.example-archives }}
158+ example-modules : ${{ matrix.example-modules }}
159+
160+ - name : Test source, docs, examples
161+ if : ${{ matrix.src-doc-examples }}
162+ shell : bash
163+ run : |
164+ cd ${{ matrix.check-dir }}
165+ ls ${{ matrix.check }}
166+
107167 - name : Install tools with options
108- if : ${{ ! matrix.qt.version }}
168+ if : ${{ matrix.qt.tools-only-build }}
109169 uses : ./
110170 with :
111171 tools-only : true
112172 tools : tools_ifw tools_qtcreator,qt.tools.qtcreator
113173 cache : ${{ matrix.cache == 'cached' }}
114174
115175 - name : Test installed tools
116- if : ${{ ! matrix.qt.version }}
176+ if : ${{ matrix.qt.tools-only-build }}
117177 env :
118178 # Conditionally set qtcreator path based on os:
119179 QTCREATOR_BIN_PATH : ${{ startsWith(matrix.os, 'macos') && '../Qt/Qt Creator.app/Contents/MacOS/' || '../Qt/Tools/QtCreator/bin/' }}
0 commit comments