64
64
65
65
runs-on : ${{matrix.os}}
66
66
steps :
67
- - uses : actions/checkout@v2
67
+ - uses : actions/checkout@v1
68
68
with :
69
- path : qtrestclient
69
+ submodules : recursive
70
70
- uses : actions/setup-python@v1
71
71
- name : actions/cache emsdk
72
72
uses : actions/cache@v1
@@ -93,42 +93,40 @@ jobs:
93
93
packages : ${{matrix.qtpackages}}
94
94
flat-sources : https://install.skycoder42.de/qtmodules/
95
95
cachedir : qt/${{matrix.version}}/${{matrix.platform}}
96
- - name : clone qthttpserver
97
- if : steps.cache-qt.outputs.cache-hit != 'true'
98
- run : git clone https://code.qt.io/qt-labs/qthttpserver.git ./qthttpserver --recurse-submodules
96
+ - name : download qthttpserver precompiled binary
97
+ if : steps.cache-qt.outputs.cache-hit != 'true' && matrix.os == 'windows-latest'
98
+ shell : bash
99
+ run : |
100
+ curl -Lo "src/3rdparty/qthttpserver-binary.zip" 'https://github.com/Skycoder42/qt5-httpserver-build/releases/download/${{matrix.version}}/qthttpserver-${{matrix.platform}}-${{matrix.version}}.zip'
101
+ 7z x "src/3rdparty/qthttpserver-binary.zip" "-o${{steps.qt.outputs.qtdir}}" -aoa -y
99
102
- name : build and install qthttpserver
100
- if : steps.cache-qt.outputs.cache-hit != 'true'
103
+ if : steps.cache-qt.outputs.cache-hit != 'true' && matrix.os != 'windows-latest'
104
+ working-directory : src/3rdparty/qthttpserver
101
105
run : |
102
106
qmake
103
107
${{steps.qt.outputs.make}} qmake_all
104
108
${{steps.qt.outputs.make}}
105
109
${{steps.qt.outputs.make}} install
106
- working-directory : qthttpserver
107
110
- name : qmake
108
- working-directory : qtrestclient
109
111
run : |
110
112
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} ${{matrix.config}} ${{matrix.extra-flags}}
111
113
${{steps.qt.outputs.make}} qmake_all
112
114
- name : make module
113
- working-directory : qtrestclient
114
115
run : |
115
116
${{steps.qt.outputs.make}}
116
117
${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
117
118
- name : make tests
118
119
if : steps.qt.outputs.tests == 'true' && matrix.mode == 'generic'
119
- working-directory : qtrestclient
120
120
run : |
121
121
${{steps.qt.outputs.make}} all
122
122
${{steps.qt.outputs.make}} ${{steps.qt.outputs.testflags}} run-tests
123
123
- name : make examples
124
124
if : matrix.platform == 'gcc_64' && matrix.mode == 'generic'
125
- working-directory : qtrestclient
126
125
run : |
127
126
${{steps.qt.outputs.make}} sub-examples
128
127
cd examples && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
129
128
- name : make doc
130
129
if : matrix.platform == 'gcc_64' && matrix.mode == 'generic'
131
- working-directory : qtrestclient
132
130
run : |
133
131
${{steps.qt.outputs.make}} doxygen
134
132
cd doc && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
0 commit comments