-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
105 lines (81 loc) · 2.69 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
# SPDX-FileCopyrightText: Hanspeter Portner <[email protected]>
# SPDX-License-Identifier: CC0-1.0
stages:
- prepare
- build
- deploy
variables:
BASE_NAME: "lv2lint"
PKG_CONFIG_PATH: "/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig:/usr/lib/${CI_BUILD_NAME}/pkgconfig"
vars:
stage: prepare
script:
- echo "VERSION=$( grep version meson_options.txt | cut -d\' -f6 )" > vars.env
artifacts:
reports:
dotenv: vars.env
.common_template: &common_definition
stage: build
artifacts:
name: "${BASE_NAME}-${VERSION}-${CI_BUILD_NAME}"
paths:
- "${BASE_NAME}-${VERSION}/"
.build_template: &build_definition
<<: *common_definition
script:
- meson --prefix=/ --cross-file "${CI_BUILD_NAME}" -Dstatic-build=false build
- echo "*" > build/.gitignore
- ninja -C build
- ninja -C build test
- DESTDIR="${CI_PROJECT_DIR}/${BASE_NAME}-${VERSION}/${CI_BUILD_NAME}" ninja -C build install
.universal_linux_template_stretch: &universal_linux_definition_stretch
image: ventosus/universal-linux-gnu:stretch
<<: *build_definition
.universal_linux_template_buster: &universal_linux_definition_buster
image: ventosus/universal-linux-gnu:buster
<<: *build_definition
.universal_linux_template_bullseye: &universal_linux_definition_bullseye
image: ventosus/universal-linux-gnu:bullseye
<<: *build_definition
.arm_linux_template_stretch: &arm_linux_definition_stretch
image: ventosus/arm-linux-gnueabihf:stretch
<<: *build_definition
.arm_linux_template_buster: &arm_linux_definition_buster
image: ventosus/arm-linux-gnueabihf:buster
<<: *build_definition
.arm_linux_template_bullseye: &arm_linux_definition_bullseye
image: ventosus/arm-linux-gnueabihf:bullseye
<<: *build_definition
# building in docker
x86_64-linux-gnu-stretch:
<<: *universal_linux_definition_stretch
x86_64-linux-gnu-buster:
<<: *universal_linux_definition_buster
x86_64-linux-gnu-bullseye:
<<: *universal_linux_definition_bullseye
i686-linux-gnu-stretch:
<<: *universal_linux_definition_stretch
i686-linux-gnu-buster:
<<: *universal_linux_definition_buster
i686-linux-gnu-bullseye:
<<: *universal_linux_definition_bullseye
arm-linux-gnueabihf-stretch:
<<: *arm_linux_definition_stretch
arm-linux-gnueabihf-buster:
<<: *arm_linux_definition_buster
arm-linux-gnueabihf-bullseye:
<<: *arm_linux_definition_bullseye
aarch64-linux-gnu-stretch:
<<: *arm_linux_definition_stretch
aarch64-linux-gnu-buster:
<<: *arm_linux_definition_buster
aarch64-linux-gnu-bullseye:
<<: *arm_linux_definition_bullseye
pack:
stage: deploy
script:
- echo 'packing up...'
artifacts:
name: "${BASE_NAME}-${VERSION}"
paths:
- "${BASE_NAME}-${VERSION}/"