This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
183 lines (177 loc) · 4.55 KB
/
.cirrus.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
env:
DEBIAN_FRONTEND: noninteractive
LANG: C
task:
name: Linux (Debian/Ubuntu)
matrix:
- container:
image: ubuntu:20.04
- container:
image: ubuntu:20.04
env:
configure_args: '--enable-cassert'
- container:
image: ubuntu:20.04
env:
configure_args: '--enable-cassert --with-uregex'
- container:
image: ubuntu:20.04
env:
CPPFLAGS: -DUSE_SYSTEMD
LIBS: -lsystemd
- container:
image: ubuntu:20.04
env:
CC: clang
- container:
image: ubuntu:20.04
env:
CFLAGS: -fno-sanitize-recover=all -fsanitize=undefined -fsanitize-address-use-after-scope -fno-sanitize=shift
- container:
image: ubuntu:20.04
env:
use_scan_build: yes
- arm_container:
image: ubuntu:20.04
- container:
image: ubuntu:22.04
- container:
image: ubuntu:18.04
- container:
image: ubuntu:16.04
- container:
image: ubuntu:14.04
- container:
image: debian:stable
- container:
image: debian:oldstable
setup_script:
- apt-get update
- pkgs="autoconf automake ca-certificates libevent-dev libssl-dev libtool make pkg-config"
- case $CC in clang) pkgs="$pkgs clang";; esac
- case $CPPFLAGS in *USE_SYSTEMD*) pkgs="$pkgs libsystemd-dev";; esac
- if [ x"$use_scan_build" = x"yes" ]; then pkgs="$pkgs clang-tools"; fi
- apt-get -y install $pkgs
build_script:
- ./autogen.sh
- ${use_scan_build:+scan-build} ./configure --prefix=$HOME/install --enable-werror $configure_args
- ${use_scan_build:+scan-build} make
test_script:
- make check
install_script:
- make install
always:
configure_artifacts:
path: "config.log"
type: text/plain
task:
name: Linux (Red Hat)
container:
matrix:
- image: rockylinux:9
- image: rockylinux:8
- image: centos:centos7
setup_script:
- yum -y install autoconf automake diffutils file libevent-devel libtool make openssl-devel pkg-config
build_script:
- ./autogen.sh
- ./configure --prefix=$HOME/install --enable-werror
- make
test_script:
- make check
install_script:
- make install
always:
configure_artifacts:
path: "config.log"
type: text/plain
task:
name: Linux (Alpine)
container:
matrix:
- image: alpine:latest
setup_script:
- apk update
- apk add autoconf automake build-base libevent-dev libtool openssl-dev pkgconf
build_script:
- ./autogen.sh
- ./configure --prefix=$HOME/install --enable-werror
- make
test_script:
- make check || : # TODO
install_script:
- make install
always:
configure_artifacts:
path: "config.log"
type: text/plain
task:
name: FreeBSD
freebsd_instance:
image_family: freebsd-13-2
setup_script:
- pkg install -y autoconf automake gmake libevent libtool pkgconf
env:
CPPFLAGS: -I/usr/local/include
LDFLAGS: -L/usr/local/lib
M4: /usr/local/bin/gm4
build_script:
- ./autogen.sh
- ./configure --prefix=$HOME/install --enable-werror
- gmake
test_script:
- gmake check || : # TODO
install_script:
- gmake install
always:
configure_artifacts:
path: "config.log"
type: text/plain
task:
name: macOS
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
setup_script:
- brew install autoconf automake libevent libtool openssl pkg-config
env:
CPPFLAGS: -I/opt/homebrew/opt/openssl@3/include
LDFLAGS: -L/opt/homebrew/opt/openssl@3/lib
build_script:
- ./autogen.sh
- ./configure --prefix=$HOME/install --enable-werror
- make
test_script:
- make check || : # TODO
install_script:
- make install
always:
configure_artifacts:
path: "config.log"
type: text/plain
task:
name: Windows
windows_container:
image: cirrusci/windowsservercore:cmake
env:
PATH: C:/tools/msys64/usr/bin;%PATH%
HOME: .
matrix:
- env:
MSYSTEM: MINGW64
- env:
MSYSTEM: MINGW32
setup_script:
- choco install -y --no-progress msys2
- sh -l -c "pacman --noconfirm -S --needed base-devel ${MINGW_PACKAGE_PREFIX}-toolchain ${MINGW_PACKAGE_PREFIX}-libevent autoconf automake libtool"
build_script:
- sh -l -c "./autogen.sh"
- sh -l -c "./configure --prefix=$HOME/install --enable-werror"
- sh -l -c "make"
test_script:
- sh -l -c "make check || :" # TODO
install_script:
- sh -l -c "make install"
always:
configure_artifacts:
path: "config.log"
type: text/plain