Repository navigation
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
108 lines (100 loc) · 2.95 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
108 lines (100 loc) · 2.95 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
stages:
- test
- build
- deploy
variables:
APPUPDATERLIB_ARCHIVE: appupdaterlib.zip
LINUX_LIB: https://drive.google.com/uc?export=download&id=1BVjJrN9sNQ6GgLEDlDURlu8VdmLuNQdq
WIN32_LIB: https://drive.google.com/uc?export=download&id=1nYez1gbVQkiXwWVEuOFC2uyaAJ4H-o7Z
WIN64_LIB: https://drive.google.com/uc?export=download&id=11qPZVPD77H7Lrnw7aY2hPfoijAbyA6a6
MACOS_LIB: https://drive.google.com/uc?export=download&id=1XwJPJaZF27EJJud8yaC3ovp5FCc7FKbf
linux_build:
stage: build
image: ubuntu:14.04
before_script:
- apt-get update
- apt-get install -y git unzip cmake build-essential autoconf libtool pkg-config libssl-dev wget chrpath
- git submodule update --init --recursive
- 'wget -L -O $APPUPDATERLIB_ARCHIVE "$LINUX_LIB"'
- unzip $APPUPDATERLIB_ARCHIVE
- mv ./appupdater ./3d-party
script:
# updateExample
- mkdir build
- cd build
- cmake ../
- cd ..
- cmake --build build --config Release
#prepare deploy
- mkdir ./build/lib
- cp ./3d-party/appupdater/lib/libappUpdaterShared.so ./build/lib
- chrpath -r ./lib ./build/updateCUI
artifacts:
name: appupdater_example_linux
paths:
- ./build/updateCUI
- ./build/lib/libappUpdaterShared.so
expire_in: 1 day
tags:
- linux
win32_build:
stage: build
variables:
BUILD_TOOL: 'Visual Studio 16 2019'
PLATFORM: 'Win32'
before_script:
- './before_script_win.ps1 "$APPUPDATERLIB_ARCHIVE" "$WIN32_LIB"'
script:
- './script_win.ps1 "$QT_BIN_DIR" "$BUILD_TOOL" "x86" "$PLATFORM"'
- 'makensis ./installer/insaller_cli.nsi'
artifacts:
name: appupdater_example_win
paths:
- ./build/Release/*
- ./installer/*.exe
expire_in: 1 day
tags:
- win
win64_build:
stage: build
variables:
BUILD_TOOL: 'Visual Studio 16 2019'
PLATFORM: 'x64'
before_script:
- './before_script_win.ps1 "$APPUPDATERLIB_ARCHIVE" "$WIN64_LIB"'
script:
- './script_win.ps1 "$QT_BIN_DIR" "$BUILD_TOOL" "x64" "$PLATFORM"'
- 'makensis /DUSE_64 ./installer/insaller_cli.nsi'
artifacts:
name: appupdater_example_win
paths:
- ./build/Release/*
- ./qml_example/release/*
- ./installer/*.exe
expire_in: 1 day
tags:
- win
macos_build:
stage: build
before_script:
- git submodule update --init --recursive
- 'curl -L -o $APPUPDATERLIB_ARCHIVE "$MACOS_LIB"'
- unzip $APPUPDATERLIB_ARCHIVE
- mv ./appupdater ./3d-party
script:
# updateExample
- mkdir build
- cd build
- cmake ../
- cd ..
- cmake --build build --config Release
#prepare deploy
- cp -R ./3d-party/appupdater/lib/ ./build/Release
artifacts:
name: appupdater_example_mac
paths:
- ./build/updateCUI
- ./build/Release/*
expire_in: 1 day
tags:
- macos