forked from mdimura/SRHDDumpReader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
82 lines (76 loc) · 2.95 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
stages:
- compile
- package
build-ubuntu16.04:
stage: compile
image: cm0x4d/ubuntu-qt5-cmake
script:
- apt-get update -qy
- apt-get install -y qtmultimedia5-dev
- mkdir build-ubuntu16.04
- cd build-ubuntu16.04; qmake ..; make
artifacts:
paths:
- build-ubuntu16.04/SRHDDumpReader
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
# cache:
# paths:
# - "*.o"
build-win64:
stage: compile
image: haffmans/mingw-qt5
script:
- mkdir build-win64
- cd build-win64; x86_64-w64-mingw32-qmake-qt5 ..; make
artifacts:
paths:
- build-win64/release/SRHDDumpReader.exe
build-win32:
stage: compile
image: haffmans/mingw-qt5
script:
- mkdir build-win32
- cd build-win32; i686-w64-mingw32-qmake-qt5 ..; make
artifacts:
paths:
- build-win32/release/SRHDDumpReader.exe
pack-win64:
stage: package
image: haffmans/mingw-qt5
script:
- mkdir -p ./SRHDDumpReader/platforms/
- mkdir -p ./SRHDDumpReader/imageformats/
- cp build-win64/release/SRHDDumpReader.exe ./SRHDDumpReader/
- cp /usr/x86_64-w64-mingw32/bin/{libbz2-1,libGLESv2,libiconv-2,libpcre-1,libwinpthread-1,Qt5Multimedia,zlib1,libfreetype-6,libglib-2.0-0,libintl-8,libpng16-16,Qt5Core,Qt5Network,libgcc_s_seh-1,libharfbuzz-0,libpcre16-0,libpcre2-16-0,libgraphite2,libstdc++-6,Qt5Gui,Qt5Widgets,Qt5Svg}.dll ./SRHDDumpReader/
- cp /usr/x86_64-w64-mingw32/lib/qt/plugins/platforms/qwindows.dll ./SRHDDumpReader/platforms/
- cp /usr/x86_64-w64-mingw32/lib/qt/plugins/imageformats/{qsvg,qico,qtiff,qjpeg}.dll ./SRHDDumpReader/imageformats/
- cp -r presets ./SRHDDumpReader/
- cp ./*.json ./SRHDDumpReader/
- cp ./Click1.wav ./SRHDDumpReader/
# - tar -czf SRHDDumpReader.tgz ./SRHDDumpReader/
artifacts:
name: "SRHDDumpReader_win64_${CI_BUILD_REF_NAME}-${CI_BUILD_REF:0:8}"
paths:
# - SRHDDumpReader.tgz
- SRHDDumpReader
pack-win32:
stage: package
image: haffmans/mingw-qt5
script:
- mkdir -p ./SRHDDumpReader/platforms/
- mkdir -p ./SRHDDumpReader/imageformats/
- cp build-win32/release/SRHDDumpReader.exe ./SRHDDumpReader/
- cp /usr/i686-w64-mingw32/bin/{libbz2-1,libGLESv2,libiconv-2,libpcre-1,libwinpthread-1,Qt5Multimedia,zlib1,libfreetype-6,libglib-2.0-0,libintl-8,libpng16-16,Qt5Core,Qt5Network,libgcc_s_sjlj-1,libharfbuzz-0,libpcre16-0,libpcre2-16-0,libgraphite2,libstdc++-6,Qt5Gui,Qt5Widgets,Qt5Svg}.dll ./SRHDDumpReader/
- cp /usr/i686-w64-mingw32/lib/qt/plugins/platforms/qwindows.dll ./SRHDDumpReader/platforms/
- cp /usr/i686-w64-mingw32/lib/qt/plugins/imageformats/{qsvg,qico,qtiff,qjpeg}.dll ./SRHDDumpReader/imageformats/
- cp -r presets ./SRHDDumpReader/
- cp ./*.json ./SRHDDumpReader/
- cp ./Click1.wav ./SRHDDumpReader/
artifacts:
name: "SRHDDumpReader_win32_${CI_BUILD_REF_NAME}-${CI_BUILD_REF:0:8}"
paths:
- SRHDDumpReader
#test:
# stage: test
# script:
# - ./runmytests.sh