-
-
Notifications
You must be signed in to change notification settings - Fork 100
137 lines (121 loc) · 3.88 KB
/
testsuite.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
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
linux:
name: Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- run: libtoolize -vci
- run: autoreconf -vfi
- run: ./configure
env:
CFLAGS: -g2 -O0 -fsanitize=address,undefined -fno-sanitize-recover
- run: make test
mac:
name: macOS
runs-on: macos-latest
steps:
- run: brew install automake libtool
- uses: actions/checkout@main
with:
submodules: recursive
- run: glibtoolize -vci
- run: autoreconf -vfi
# macOS’s system OpenSSL (LibreSSL, actually) isn’t meant for linking,
# and Homebrew’s# OpenSSL isn’t CI-friendly. So build without OpenSSL.
- run: ./configure --without-ssl --disable-sha2 --disable-gost --disable-ecdsa --disable-dane
env:
CFLAGS: -g2 -O0 -fsanitize=address,undefined -fno-sanitize-recover
- run: make test
# Pending https://github.com/NLnetLabs/ldns/issues/197,
# only builds succeed here.
cygwin:
name: Cygwin
runs-on: windows-latest
steps:
- name: Make git ignore line breaks
run: git config --global core.autocrlf false
- name: Set up Cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: make gcc-g++ bash libtool automake autoconf libssl-devel bind-utils
- uses: actions/checkout@main
with:
submodules: recursive
- shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
name: Build
run: |
cd $GITHUB_WORKSPACE
libtoolize -vci
autoreconf -vfi
./configure
make
qemu-alpine:
name: Linux (Alpine, ${{ matrix.platform }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- i386
- arm32v6
- arm32v7
- arm64v8
- s390x
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- name: Get the qemu container
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: "${{ matrix.platform }}: Build and test"
run: docker run --rm --interactive --mount type=bind,source=$(pwd),target=/host ${{ matrix.platform }}/alpine sh -c "apk add make gcc libc-dev libtool automake autoconf openssl-dev m4 indent bash bind-tools && cd /host && libtoolize -vci && autoreconf -vfi && ./configure && make test"
# BSDs:
# name: ${{ matrix.os.dispname }} ${{ matrix.os.version }}
#
# runs-on: macos-latest
#
# strategy:
# fail-fast: false
# matrix:
# os:
# - name: freebsd
# dispname: FreeBSD
# version: '13.0'
# pkginstall: pkg install -y libtool automake bind-tools gmake gindent
# env:
# configure_args:
#
# # OpenBSD seems to require explicit auto* versions.
# - name: openbsd
# dispname: OpenBSD
# version: '7.1'
# pkginstall: pkg_add -v libtool gmake gindent automake-1.16.3 autoconf-2.71
# env: AUTOCONF_VERSION=2.71 AUTOMAKE_VERSION=1.16
# configure_args: --disable-dane-verify
#
# steps:
# - uses: actions/checkout@main
# with:
# submodules: recursive
# - name: Build and test on ${{ matrix.os.name }}
# uses: cross-platform-actions/action@master
# with:
# operating_system: ${{ matrix.os.name }}
# version: ${{ matrix.os.version }}
# shell: bash
# run: |
# export DUMMY12345=1 ${{ matrix.os.env }}
# sudo ${{ matrix.os.pkginstall }} || ${{ matrix.os.pkginstall }}
# libtoolize -vci
# autoreconf -vfi
# ./configure ${{ matrix.os.configure_args }}
# gmake test