forked from rilian-la-te/vala-panel-appmenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
95 lines (84 loc) · 3.14 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
83
84
85
86
87
88
89
90
91
92
93
94
stages:
- build
- release
before_script:
- mkdir -p _ccache
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/_ccache
cache:
paths:
- _ccache/
build-applet-main:
image: archlinux/base
stage: build
script:
- pacman -Syy --noconfirm glibc libwnck3 gtk3 vala cmake git base-devel clang ninja xfce4-panel mate-panel budgie-desktop gobject-introspection bamf
- git clone https://gitlab.com/vala-panel-project/cmake-vala.git
- cd cmake-vala && cmake . -DCMAKE_INSTALL_PREFIX=/usr -GNinja && ninja install && cd .. && rm -rf cmake-vala
- git clone https://gitlab.com/vala-panel-project/vala-panel.git
- cd vala-panel && cmake . -DCMAKE_INSTALL_PREFIX=/usr -GNinja && ninja install && cd .. && rm -rf vala-panel
- mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_JAYATANA=OFF -DENABLE_APPMENU_GTK_MODULE=OFF -GNinja
- ninja
- ninja install
- ninja dist
artifacts:
paths:
- "build/vala-panel-appmenu*.tar.xz"
expire_in: 1 week
build-gtk-module-main:
image: archlinux/base
stage: build
script:
- pacman -Syy --noconfirm gtk3 gtk2 cmake base-devel ninja git
- git clone https://gitlab.com/vala-panel-project/cmake-vala.git
- cd cmake-vala && cmake . -DCMAKE_INSTALL_PREFIX=/usr -GNinja && ninja install && cd .. && rm -rf cmake-vala
- cd subprojects/appmenu-gtk-module
- mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -GNinja
- ninja
- ninja install
- ninja dist
artifacts:
paths:
- "subprojects/appmenu-gtk-module/build/appmenu-gtk-module*.tar.xz"
expire_in: 1 week
build-registrar-main:
image: archlinux/base
stage: build
script:
- pacman -Syy --noconfirm glib2 cmake base-devel ninja python git
- git clone https://gitlab.com/vala-panel-project/cmake-vala.git
- cd cmake-vala && cmake . -DCMAKE_INSTALL_PREFIX=/usr -GNinja && ninja install && cd .. && rm -rf cmake-vala
- cd subprojects/registrar
- mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -GNinja
- ninja
- ninja install
- ninja dist
artifacts:
paths:
- "subprojects/registrar/build/appmenu-registrar*.tar.xz"
expire_in: 1 week
build-jayatana-main:
image: archlinux/base
stage: build
script:
- pacman -Syy --noconfirm glib2 libdbusmenu-glib cmake base-devel ninja libxkbcommon jdk11-openjdk git libx11
- git clone https://gitlab.com/vala-panel-project/cmake-vala.git
- cd cmake-vala && cmake . -DCMAKE_INSTALL_PREFIX=/usr -GNinja && ninja install && cd .. && rm -rf cmake-vala
- cd subprojects/jayatana
- mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -GNinja
- ninja
- ninja install
- ninja dist
artifacts:
paths:
- "subprojects/jayatana/build/jayatana*.tar.xz"
expire_in: 1 week
release-main:
image: alpine:edge
stage: release
script:
- apk add --no-cache python3 py3-pip
- pip3 install gitlab_release
- python3 -m gitlab_release ${PRIVATE_TOKEN} build/vala-panel*.tar.xz subprojects/jayatana/build/jayatana*.tar.xz subprojects/registrar/build/appmenu-registrar*.tar.xz subprojects/appmenu-gtk-module/build/appmenu-gtk-module*.tar.xz
only:
- tags