aboutsummaryrefslogtreecommitdiff
path: root/.cirrus.yml
blob: c90140667828736d9351b54f5a43feae4425790f (plain)
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
# gcc' -Werror=use-after-free gets tripped by vis.c: it sees a use
# after free where it's not possible and breaks the CI.

# seems that inside the CI it's not currently possible to bind to ::1
# so set HAVE_IPV6=no.

linux_amd64_task:
  container:
    image: alpine:latest
  test_script:
    - apk add alpine-sdk linux-headers bison libretls-dev libevent-dev
    - ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations -Wno-use-after-free' -Werror
    - make
    - make regress REGRESS_HOST="*" HAVE_IPV6=no

linux_arm_task:
  arm_container:
    image: alpine:latest
  test_script:
    - apk add alpine-sdk linux-headers bison libretls-dev libevent-dev
    - ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations -Wno-use-after-free' -Werror
    - make
    - make regress REGRESS_HOST="*" HAVE_IPV6=no

freebsd_14_task:
  freebsd_instance:
    image_family: freebsd-14-0
  install_script: pkg install -y libevent libressl pkgconf
  script:
    - ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations' -Werror
    - make
    - make regress HAVE_IPV6=no

#
# There are some issues with imsg fd passing on macos at the moment that
# seem to be triggered only in applications that do a heavy use of them,
# like gmid or opensmtpd.  Still, keep macos to ensure gmid builds here.
#
mac_task:
  macos_instance:
    image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
  test_script:
    - brew install libevent openssl libretls
    - PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig" ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations' -Werror
    - make
    - SKIP_RUNTIME_TESTS=1 make regress