-
Notifications
You must be signed in to change notification settings - Fork 44
/
.gitlab-ci.yml
107 lines (97 loc) · 3.22 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
95
96
97
98
99
100
101
102
103
104
105
106
stages:
- build
- release
before_script:
- mkdir -p _ccache
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/_ccache
cache:
paths:
- _ccache/
build-applet-alpine:
image: alpine:edge
stage: build
script:
- apk add --no-cache python3 gobject-introspection-dev gtk+3.0-dev vala meson ninja xz libwnck3-dev build-base git
- git clone https://gitlab.com/vala-panel-project/vala-panel.git
- meson --prefix=/usr vp-build vala-panel && meson install -C vp-build && rm -rf vala-panel && rm -rf vp-build
- meson --prefix=/usr -Dregistrar=disabled -Djayatana=disabled -Dappmenu-gtk-module=disabled build
- meson compile -C build
- meson install -C build --no-rebuild
- meson dist -C build --no-tests
artifacts:
paths:
- "build/meson-dist/vala-panel-appmenu*.tar.xz"
expire_in: 1 week
build-gtk-module-main:
image: alpine:edge
stage: build
script:
- apk add --no-cache python3 gtk+3.0-dev gtk+2.0-dev xz meson ninja libwnck3-dev build-base git
- export VERSION=$(git describe --abbrev=0)
- meson --prefix=/usr build subprojects/appmenu-gtk-module
- meson compile -C build
- meson install -C build --no-rebuild
- meson dist -C build --no-tests
artifacts:
paths:
- "build/meson-dist/appmenu-gtk-module*.tar.xz"
expire_in: 1 week
build-glib-translator-main:
image: alpine:edge
stage: build
script:
- apk add --no-cache python3 glib-dev gobject-introspection-dev vala xz meson build-base git
- export VERSION=$(git describe --abbrev=0)
- meson --prefix=/usr build subprojects/appmenu-glib-translator
- meson compile -C build
- meson install -C build --no-rebuild
- meson dist -C build --no-tests
artifacts:
paths:
- "build/meson-dist/appmenu-glib-translator*.tar.xz"
expire_in: 1 week
build-registrar-main:
image: alpine:edge
stage: build
script:
- apk add --no-cache python3 glib-dev meson xz build-base git
- export VERSION=$(git describe --abbrev=0)
- meson --prefix=/usr --libexecdir=lib build subprojects/registrar
- meson compile -C build
- meson install -C build --no-rebuild
- meson dist -C build --no-tests
artifacts:
paths:
- "build/meson-dist/registrar*.tar.xz"
expire_in: 1 week
build-jayatana-main:
image: alpine:edge
stage: build
script:
- apk add --no-cache libdbusmenu-glib-dev python3 build-base ninja libxkbcommon-dev git libx11-dev meson glib-dev java-common openjdk21-jdk
- meson --prefix=/usr --libexecdir=lib build subprojects/jayatana
- meson compile -C build
- meson install -C build --no-rebuild
- meson dist -C build --no-tests
artifacts:
paths:
- "build/meson-dist/jayatana*.tar.xz"
expire_in: 1 week
release-main:
image: alpine:edge
stage: release
script:
- apk add --no-cache python3 py3-pip
- pip3 install --break-system-packages gitlab-release
- gitlab-release --link-in-desc --link-artifact *.tar.xz
artifacts:
paths:
# Must include files passed to gitlab_release
- "build/meson-dist/appmenu-glib-translator*.tar.xz"
- "build/meson-dist/appmenu-gtk-module*.tar.xz"
- "build/meson-dist/registrar*.tar.xz"
- "build/meson-dist/vala-panel-appmenu*.tar.xz"
- "build/meson-dist/jayatana*.tar.xz"
only:
- tags