Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 36c28ff

Browse files
committed
try with http server
1 parent de38199 commit 36c28ff

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/build.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ jobs:
6464

6565
runs-on: ${{matrix.os}}
6666
steps:
67-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v1
6868
with:
69-
path: qtrestclient
69+
submodules: recursive
7070
- uses: actions/setup-python@v1
7171
- name: actions/cache emsdk
7272
uses: actions/cache@v1
@@ -93,42 +93,40 @@ jobs:
9393
packages: ${{matrix.qtpackages}}
9494
flat-sources: https://install.skycoder42.de/qtmodules/
9595
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
99102
- 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
101105
run: |
102106
qmake
103107
${{steps.qt.outputs.make}} qmake_all
104108
${{steps.qt.outputs.make}}
105109
${{steps.qt.outputs.make}} install
106-
working-directory: qthttpserver
107110
- name: qmake
108-
working-directory: qtrestclient
109111
run: |
110112
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} ${{matrix.config}} ${{matrix.extra-flags}}
111113
${{steps.qt.outputs.make}} qmake_all
112114
- name: make module
113-
working-directory: qtrestclient
114115
run: |
115116
${{steps.qt.outputs.make}}
116117
${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
117118
- name: make tests
118119
if: steps.qt.outputs.tests == 'true' && matrix.mode == 'generic'
119-
working-directory: qtrestclient
120120
run: |
121121
${{steps.qt.outputs.make}} all
122122
${{steps.qt.outputs.make}} ${{steps.qt.outputs.testflags}} run-tests
123123
- name: make examples
124124
if: matrix.platform == 'gcc_64' && matrix.mode == 'generic'
125-
working-directory: qtrestclient
126125
run: |
127126
${{steps.qt.outputs.make}} sub-examples
128127
cd examples && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
129128
- name: make doc
130129
if: matrix.platform == 'gcc_64' && matrix.mode == 'generic'
131-
working-directory: qtrestclient
132130
run: |
133131
${{steps.qt.outputs.make}} doxygen
134132
cd doc && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install

0 commit comments

Comments
 (0)