@@ -15,62 +15,6 @@ defaults:
1515
1616jobs :
1717
18- build_qt :
19- strategy :
20- matrix :
21- os : [windows-2019, windows-2022]
22- qt_ver : [5.15.2, 6.2.4, 6.3.2, 6.4.0]
23- fail-fast : false
24-
25- runs-on : ${{ matrix.os }}
26-
27- steps :
28- - uses : actions/checkout@v3
29-
30- - name : Set up Visual Studio environment
31- uses : ilammy/msvc-dev-cmd@v1
32- with :
33- arch : x64 # no 32-bit Qt available
34-
35- - name : Cache Qt ${{ matrix.qt_ver }}
36- id : cache-qt
37- uses : actions/cache@v1 # not v2!
38- with :
39- path : ../Qt
40- key : Windows-QtCache-${{ matrix.qt_ver }}-qtcharts
41-
42- - name : Install Qt ${{ matrix.qt_ver }}
43- uses : jurplel/install-qt-action@v2
44- with :
45- aqtversion : ' ==2.0.6'
46- version : ${{ matrix.qt_ver }}
47- modules : ' qtcharts'
48- cached : ${{ steps.cache-qt.outputs.cache-hit }}
49-
50- - name : Build GUI release (qmake)
51- if : startsWith(matrix.qt_ver, '5')
52- run : |
53- cd gui || exit /b !errorlevel!
54- qmake HAVE_QCHART=yes || exit /b !errorlevel!
55- nmake release || exit /b !errorlevel!
56- env :
57- CL : /MP
58-
59- - name : Deploy GUI
60- if : startsWith(matrix.qt_ver, '5')
61- run : |
62- windeployqt Build\gui || exit /b !errorlevel!
63- del Build\gui\cppcheck-gui.ilk || exit /b !errorlevel!
64- del Build\gui\cppcheck-gui.pdb || exit /b !errorlevel!
65-
66- - name : Build GUI release (CMake)
67- if : startsWith(matrix.qt_ver, '6')
68- run : |
69- cmake -S . -B build -DBUILD_GUI=On -DWITH_QCHART=On -DUSE_QT6=On || exit /b !errorlevel!
70- cmake --build build --target cppcheck-gui || exit /b !errorlevel!
71-
72- # TODO: deploy with CMake/Qt6
73-
7418 build :
7519 strategy :
7620 matrix :
0 commit comments