Skip to content

Commit 4a91d3a

Browse files
committed
update CI to 5.14, use Github Actions
1 parent 4cb991b commit 4a91d3a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+187
-236
lines changed

.github/workflows/build.yml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
name: CI build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
version:
11+
- 5.14.0
12+
platform:
13+
- gcc_64
14+
- android
15+
- wasm_32
16+
- msvc2017_64
17+
- msvc2017
18+
- winrt_x64_msvc2017
19+
- winrt_x86_msvc2017
20+
- winrt_armv7_msvc2017
21+
- mingw73_64
22+
- mingw73_32
23+
- clang_64
24+
- ios
25+
26+
include:
27+
- platform: gcc_64
28+
os: ubuntu-latest
29+
- platform: android
30+
os: ubuntu-latest
31+
- platform: wasm_32
32+
os: ubuntu-latest
33+
emsdk: sdk-fastcomp-1.38.27-64bit
34+
- platform: msvc2017_64
35+
os: windows-2016
36+
- platform: msvc2017
37+
os: windows-2016
38+
- platform: winrt_x64_msvc2017
39+
os: windows-2016
40+
- platform: winrt_x86_msvc2017
41+
os: windows-2016
42+
- platform: winrt_armv7_msvc2017
43+
os: windows-2016
44+
- platform: mingw73_64
45+
os: windows-latest
46+
- platform: mingw73_32
47+
os: windows-latest
48+
- platform: clang_64
49+
os: macos-latest
50+
- platform: ios
51+
os: macos-latest
52+
53+
runs-on: ${{matrix.os}}
54+
steps:
55+
- uses: actions/checkout@v1
56+
with:
57+
submodules: recursive
58+
- uses: actions/setup-python@v1
59+
- name: actions/cache emsdk
60+
uses: actions/cache@v1
61+
if: matrix.platform == 'wasm_32'
62+
with:
63+
path: emsdk-cache
64+
key: ${{runner.os}}-emsdk-${{matrix.emsdk}}
65+
- uses: mymindstorm/setup-emsdk@v3
66+
if: matrix.platform == 'wasm_32'
67+
with:
68+
version: ${{matrix.emsdk}}
69+
actions-cache-folder: emsdk-cache
70+
- name: actions/cache qt
71+
uses: actions/cache@v1
72+
id: cache
73+
with:
74+
path: qt/${{matrix.version}}/${{matrix.platform}}
75+
key: qt-${{matrix.version}}-${{matrix.platform}}
76+
- uses: Skycoder42/action-setup-qt@master
77+
id: qt
78+
with:
79+
version: ${{matrix.version}}
80+
platform: ${{matrix.platform}}
81+
install-args: --verbose
82+
cachedir: qt/${{matrix.version}}/${{matrix.platform}}
83+
- name: build qthttpserver
84+
# if: steps.cache-qt.outputs.cache-hit != 'true' && !contains(matrix.platform, 'mingw')
85+
if: steps.cache-qt.outputs.cache-hit != 'true'
86+
run: |
87+
qmake
88+
${{steps.qt.outputs.make}} qmake_all
89+
${{steps.qt.outputs.make}}
90+
${{steps.qt.outputs.make}} install
91+
working-directory: src/3rdparty/qthttpserver
92+
# - name: unpack qthttpserver
93+
# if: steps.cache-qt.outputs.cache-hit != 'true' && contains(matrix.platform, 'mingw')
94+
# run: 7z x "src/3rdparty/qthttpserver-${{matrix.platform}}.zip" "-o${{steps.qt.outputs.qtdir}}" -aoa -y
95+
- name: install packagekit
96+
if: matrix.platform == 'gcc_64'
97+
run: |
98+
sudo apt-get -qq install packagekit
99+
export PKG_CONFIG_PATH=${{steps.qt.outputs.qtdir}}/lib/pkgconfig/:$PKG_CONFIG_PATH
100+
echo "::set-env name=PKG_CONFIG_PATH::$PKG_CONFIG_PATH"
101+
- name: build PackageKit-Qt
102+
if: steps.cache-qt.outputs.cache-hit != 'true' && matrix.platform == 'gcc_64'
103+
run: |
104+
sed -i 's/set(BUILD_SHARED_LIBS ON)/set(BUILD_SHARED_LIBS OFF)/g' CMakeLists.txt
105+
export CMAKE_PREFIX_PATH=${{steps.qt.outputs.qtdir}}:$CMAKE_PREFIX_PATH
106+
mkdir build && cd build
107+
cmake \
108+
"-DCMAKE_INSTALL_PREFIX=$(qmake -query QT_INSTALL_PREFIX)" \
109+
"-DCMAKE_INSTALL_LIBDIR=$(qmake -query QT_INSTALL_LIBS)" \
110+
"-DCMAKE_INSTALL_INCLUDEDIR=$(qmake -query QT_INSTALL_HEADERS)" \
111+
".."
112+
${{steps.qt.outputs.make}}
113+
${{steps.qt.outputs.make}} install
114+
pkg-config --exists packagekitqt5
115+
working-directory: src/3rdparty/PackageKit-Qt
116+
- name: qmake
117+
run: |
118+
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}}
119+
${{steps.qt.outputs.make}} qmake_all
120+
- name: make module
121+
run: |
122+
${{steps.qt.outputs.make}}
123+
${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
124+
- name: make tests
125+
if: steps.qt.outputs.tests == 'true' && !contains(matrix.platform, 'mingw')
126+
run: |
127+
${{steps.qt.outputs.make}} all
128+
${{steps.qt.outputs.make}} ${{steps.qt.outputs.testflags}} run-tests
129+
- name: make examples
130+
if: matrix.platform == 'gcc_64'
131+
run: |
132+
${{steps.qt.outputs.make}} sub-examples
133+
cd examples && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
134+
- name: make doc
135+
if: matrix.platform == 'gcc_64'
136+
run: |
137+
${{steps.qt.outputs.make}} doxygen
138+
cd doc && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
139+
- name: upload module to releases
140+
uses: Skycoder42/action-upload-release@master
141+
if: startsWith(github.ref, 'refs/tags/')
142+
with:
143+
repo_token: ${{secrets.GITHUB_TOKEN}}
144+
directory: ${{steps.qt.outputs.outdir}}/${{matrix.version}}
145+
asset_name: qtautoupdater-${{matrix.platform}}-${{matrix.version}}
146+
tag: ${{github.ref}}
147+
overwrite: true
148+
- name: upload examples to releases
149+
uses: Skycoder42/action-upload-release@master
150+
if: matrix.platform == 'gcc_64' && startsWith(github.ref, 'refs/tags/')
151+
with:
152+
repo_token: ${{secrets.GITHUB_TOKEN}}
153+
directory: ${{steps.qt.outputs.outdir}}/Examples
154+
asset_name: qtautoupdater-examples-${{matrix.version}}
155+
tag: ${{github.ref}}
156+
overwrite: true
157+
- name: upload doc to releases
158+
uses: Skycoder42/action-upload-release@master
159+
if: matrix.platform == 'gcc_64' && startsWith(github.ref, 'refs/tags/')
160+
with:
161+
repo_token: ${{secrets.GITHUB_TOKEN}}
162+
directory: ${{steps.qt.outputs.outdir}}/Docs
163+
asset_name: qtautoupdater-doc-${{matrix.version}}
164+
tag: ${{github.ref}}
165+
overwrite: true
166+
167+
deploy:
168+
if: startsWith(github.ref, 'refs/tags/')
169+
needs: build
170+
runs-on: ubuntu-latest
171+
steps:
172+
- uses: actions/checkout@v1
173+
with:
174+
submodules: recursive
175+
path: source
176+
- uses: actions/setup-python@v1
177+
- uses: Skycoder42/action-deploy-qt@master
178+
with:
179+
token: ${{secrets.GITHUB_TOKEN}}
180+
version: 5.14.0
181+
host: ${{secrets.SSHFS_HOST}}
182+
key: ${{secrets.SSHFS_KEY}}
183+
port: ${{secrets.SSHFS_PORT}}

.travis.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

ci/appveyor.bat

Lines changed: 0 additions & 25 deletions
This file was deleted.

ci/appveyor_mingw.bat

Lines changed: 0 additions & 19 deletions
This file was deleted.

ci/appveyor_msvc.bat

Lines changed: 0 additions & 19 deletions
This file was deleted.

ci/travis.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)