Skip to content

Commit b7812c5

Browse files
omajidsimo5
authored andcommitted
Add more OS to CI matrix
1 parent 7ddbfb6 commit b7812c5

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

.github/workflows/ccpp.yml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,51 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10+
strategy:
11+
matrix:
12+
container:
13+
- docker.io/library/alpine:latest
14+
- docker.io/library/alpine:edge
15+
- docker.io/library/archlinux:latest
16+
- docker.io/library/debian:oldstable
17+
- docker.io/library/debian:stable
18+
- docker.io/library/debian:unstable
19+
- docker.io/library/debian:testing
20+
- docker.io/library/ubuntu:latest
21+
- docker.io/library/ubuntu:rolling
22+
- docker.io/library/ubuntu:devel
23+
# - quay.io/centos/centos:stream9
24+
# - registry.fedoraproject.org/fedora:latest
25+
- registry.fedoraproject.org/fedora:rawhide
26+
fail-fast: false
27+
28+
container:
29+
image: ${{ matrix.container }}
30+
1031
steps:
32+
- name: update and install packages
33+
run: |
34+
if command -v apk; then
35+
apk add automake autoconf docbook-xml docbook-xsl doxygen krb5-dev libtool libunistring-dev libxslt gettext-dev gcc libxml2 m4 make musl-dev openssl-dev zlib-dev
36+
elif command -v apt; then
37+
export DEBIAN_FRONTEND=noninteractive
38+
apt-get update
39+
apt-get install -y autotools-dev autoconf build-essential libtool libkrb5-dev libssl-dev libunistring-dev gettext xsltproc libxml2-utils docbook-xml docbook-xsl zlib1g-dev
40+
elif command -v dnf; then
41+
dnf install -y autoconf automake docbook-style-xsl doxygen gettext-devel krb5-devel libtool libunistring-devel libxml2 libxslt m4 make openssl-devel pkgconfig 'pkgconfig(wbclient)' zlib-devel
42+
elif command -v pacman; then
43+
pacman -Sy --noconfirm automake autoconf docbook-xml docbook-xsl doxygen libtool libxslt gcc libxml2 m4 make zlib
44+
fi
1145
- uses: actions/checkout@v2
12-
- name: update repositories
13-
run: sudo apt-get update
14-
- name: install dependency
15-
run: sudo apt-get install libkrb5-dev libunistring-dev gettext xsltproc libxml2-utils docbook-xml docbook-xsl
1646
- name: autoreconf
1747
run: autoreconf -fi
1848
- name: configure
19-
run: ./configure --with-wbclient=no
49+
run: |
50+
# Alpine needs extra flags. See https://gitlab.alpinelinux.org/alpine/aports/-/issues/13285
51+
if command -v apk; then
52+
export LDFLAGS=-lintl
53+
fi
54+
./configure --with-wbclient=no
2055
- name: make
2156
run: make
2257
- name: make check

0 commit comments

Comments
 (0)