@@ -22,22 +22,86 @@ stages:
22
22
before_script :
23
23
- echo "started by ${GITLAB_USER_NAME}"
24
24
25
+ # reusable templates
26
+ .ccache_init : &ccache_init
27
+ before_script :
28
+ - apt update
29
+ - apt install -y build-essential qtcreator qt5-default libopenal-dev pkgconf wget git
30
+
25
31
# -----------------------------------------------------------------------#
26
- # Linux (AppImage) Build Target #
32
+ # Linux (AppImage) 32-bit Build Target #
27
33
# -----------------------------------------------------------------------#
28
- build_linux :
34
+ build_linux_32 :
35
+ << : *ccache_init
36
+ image : i386/ubuntu:bionic
37
+ stage : build
38
+ script :
39
+ - export $(dpkg-architecture)
40
+ - ./scripts/build-appimage.sh
41
+
42
+ artifacts :
43
+ paths :
44
+ - Keyboard_Visualizer-i386.AppImage
45
+ expire_in : 30 days
46
+
47
+ # -----------------------------------------------------------------------#
48
+ # Linux (AppImage) 64-bit Build Target #
49
+ # -----------------------------------------------------------------------#
50
+ build_linux_64 :
51
+ << : *ccache_init
29
52
image : ubuntu:bionic
30
53
stage : build
31
54
script :
32
- - apt update
33
- - apt install -y build-essential qtcreator qt5-default libopenal-dev pkgconf wget git
55
+ - export $(dpkg-architecture)
34
56
- ./scripts/build-appimage.sh
35
57
36
58
artifacts :
37
59
paths :
38
60
- Keyboard_Visualizer-x86_64.AppImage
39
61
expire_in : 30 days
40
62
63
+ # -----------------------------------------------------------------------#
64
+ # Linux (.deb) 32-bit Build Target #
65
+ # -----------------------------------------------------------------------#
66
+ build_linux_deb32 :
67
+ << : *ccache_init
68
+ image : i386/ubuntu:bionic
69
+ stage : build
70
+ script :
71
+ - apt install -y debhelper
72
+ - dpkg-architecture -l
73
+ - dpkg-buildpackage --target-arch i386 -us -B
74
+ - rm -v ../keyboardvisualizer-dbgsym*.ddeb
75
+ - mv -v ../keyboardvisualizer*.deb ./
76
+
77
+ artifacts :
78
+ paths :
79
+ - keyboardvisualizer*.deb
80
+ exclude :
81
+ - keyboardvisualizer-dbgsym*.deb
82
+ expire_in : 30 days
83
+
84
+ # -----------------------------------------------------------------------#
85
+ # Linux (.deb) 64-bit Build Target #
86
+ # -----------------------------------------------------------------------#
87
+ build_linux_deb64 :
88
+ << : *ccache_init
89
+ image : ubuntu:bionic
90
+ stage : build
91
+ script :
92
+ - apt install -y debhelper
93
+ - dpkg-architecture -l
94
+ - dpkg-buildpackage -us -B
95
+ - rm -v ../keyboardvisualizer-dbgsym*.ddeb
96
+ - mv -v ../keyboardvisualizer*.deb ./
97
+
98
+ artifacts :
99
+ paths :
100
+ - keyboardvisualizer*.deb
101
+ exclude :
102
+ - keyboardvisualizer-dbgsym*.deb
103
+ expire_in : 30 days
104
+
41
105
# -----------------------------------------------------------------------#
42
106
# Windows (32-bit) Build Target #
43
107
# -----------------------------------------------------------------------#
0 commit comments