-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (38 loc) · 1.18 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
image: archlinux/base
stages:
- build
- release
before_script:
- mkdir -p _ccache
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/_ccache
- pacman -Sy
- pacman -S --noconfirm libwnck3 gtk3 vala cmake git base-devel clang ninja xfce4-panel mate-panel budgie-desktop gobject-introspection
- 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
cache:
paths:
- _ccache/
build:
stage: build
script:
- mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -GNinja
- ninja
- ninja install
- ninja dist
artifacts:
paths:
- "build/xfce4-sntray-plugin*.tar.xz"
expire_in: 1 week
release-main:
image: archlinux/base
stage: release
script:
- pacman -Sy
- pacman -S --noconfirm python3 python-pip
- pip3 install gitlab_release
- python3 -m gitlab_release ${PRIVATE_TOKEN} build/xfce4-sntray-plugin*.tar.xz
only:
- tags