|
7 | 7 |
|
8 | 8 | runs-on: ubuntu-latest
|
9 | 9 |
|
| 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 | + |
10 | 31 | 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 |
11 | 45 | - 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 |
16 | 46 | - name: autoreconf
|
17 | 47 | run: autoreconf -fi
|
18 | 48 | - 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 |
20 | 55 | - name: make
|
21 | 56 | run: make
|
22 | 57 | - name: make check
|
|
0 commit comments