forked from GNOME/cantarell-fonts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
55 lines (50 loc) · 1.84 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
build-variable:
image: 'registry.fedoraproject.org/fedora:latest'
script:
- dnf install -y git-core python3-pip meson ninja-build libappstream-glib-devel gettext python3.8
- python3.8 -m ensurepip
- python3.8 -m venv venv
- . venv/bin/activate
- pip3 install meson ninja -r requirements.txt
- meson build
- ninja -C build install
# Make a dist package with prebuilt binaries.
- meson rewrite default-options set useprebuilt true
- git add meson.build
- cp /usr/local/share/fonts/cantarell/*.otf prebuilt
- git add prebuilt/*.otf
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- git commit -m "Make package with prebuilt binaries, ninja will dist them."
- ninja -C build dist
artifacts:
paths:
- build/meson-dist
- prebuilt/*.otf
expire_in: 7 days
build-statics:
image: 'registry.fedoraproject.org/fedora:latest'
script:
- dnf install -y git-core python3-pip meson ninja-build libappstream-glib-devel gettext python3.8
- python3.8 -m ensurepip
- python3.8 -m venv venv
- . venv/bin/activate
- pip3 install meson ninja -r requirements.txt
- meson rewrite default-options set buildstatics true
- meson rewrite default-options set buildvf false
- meson build
- ninja -C build install
# Make a dist package with prebuilt binaries.
- meson rewrite default-options set useprebuilt true
- git add meson.build
- cp /usr/local/share/fonts/cantarell/*.otf prebuilt
- git add prebuilt/*.otf
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- git commit -m "Make package with prebuilt binaries, ninja will dist them."
- ninja -C build dist
artifacts:
paths:
- build/meson-dist
- prebuilt/*.otf
expire_in: 7 days