-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.gitlab-ci.yml
41 lines (37 loc) · 1.12 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
stages:
- build
- release
before_script:
- mkdir -p _ccache
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/_ccache
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- _ccache/
build-alpine-meson:
image: alpine:edge
stage: build
script:
- apk add --no-cache python3 gtk+3.0-dev vala meson ninja libwnck3-dev gobject-introspection-dev build-base git gtk-layer-shell-dev
- git clone https://gitlab.com/vala-panel-project/vala-panel-appmenu.git
- meson --prefix=/usr vp-build vala-panel-appmenu/subprojects/appmenu-glib-translator && meson install -C vp-build && rm -rf vala-panel-appmenu && rm -rf vp-build
- meson bld --prefix=/usr && cd bld
- ninja dist
artifacts:
paths:
- "bld/meson-dist/vala-panel*.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
- "bld/meson-dist/vala-panel*.tar.xz"
only:
- tags