-
Notifications
You must be signed in to change notification settings - Fork 34
/
.gitlab-ci.yml
119 lines (104 loc) · 3.08 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
107
108
109
110
111
112
113
114
115
116
117
118
119
# Copyright 2018-2022 David Robillard <[email protected]>
# SPDX-License-Identifier: 0BSD OR ISC
stages: [build, deploy]
default:
stage: build
image: lv2plugin/debian-x64
script:
- meson setup build -Dwerror=true
- ninja -C build
dev:
stage: build
image: lv2plugin/debian-x64
script:
- meson setup build -Dbuildtype=debug -Ddocs=enabled -Ddocs_cpp=false -Dwarning_level=3 -Dwerror=true -Dlint=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
artifacts:
paths:
- build/doc
static:
stage: build
image: lv2plugin/debian-x64
script:
- meson setup build -Ddefault_library=static -Ddocs=disabled -Dwarning_level=3 -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
# Linux Platforms
arm32:
stage: build
image: lv2plugin/debian-arm32
script:
- meson setup build --cross-file=/usr/share/meson/cross/arm-linux-gnueabihf.ini -Dbuildtype=debug -Ddocs=disabled -Dwarning_level=3 -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
arm64:
stage: build
image: lv2plugin/debian-arm64
script:
- meson setup build --cross-file=/usr/share/meson/cross/aarch64-linux-gnu.ini -Dbuildtype=debug -Ddocs=disabled -Dwarning_level=3 -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
mingw32:
stage: build
image: lv2plugin/debian-mingw32
script:
- meson setup build --cross-file=/usr/share/meson/cross/i686-w64-mingw32.ini -Dbuildtype=debug -Ddocs=disabled -Dwarning_level=everything -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
variables:
WINEPATH: "Z:\\usr\\lib\\gcc\\i686-w64-mingw32\\10-win32"
mingw64:
stage: build
image: lv2plugin/debian-mingw64
script:
- meson setup build --cross-file=/usr/share/meson/cross/x86_64-w64-mingw32.ini -Dbuildtype=debug -Ddocs=disabled -Dwarning_level=everything -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
# Linux Distributions
fedora:
stage: build
image: lv2plugin/fedora-big
script:
- meson setup build -Dbuildtype=plain -Dwarning_level=3 -Dwerror=true
- ninja -C build
variables:
CFLAGS: -O2 -D_FORTIFY_SOURCE=2
# Non-Linux/Docker rows (not hosted)
mac:
stage: build
tags: [macos]
script:
- meson setup build -Dbuildtype=debug -Ddocs=disabled -Dwarning_level=everything -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
win:
stage: build
tags: [windows,meson]
script:
- meson setup build -Dbuildtype=debug -Ddocs=disabled -Dwarning_level=everything -Dwerror=true
- ninja -C build
- meson configure -Dbuildtype=release build
- ninja -C build
pages:
stage: deploy
script:
- mkdir public
- mkdir public/c
- mkdir public/cpp
- mv build/doc/c/singlehtml/ public/c/singlehtml/
- mv build/doc/c/html/ public/c/html/
needs:
- dev
artifacts:
paths:
- public
only:
- main