packages: add latest distro versions #393
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build check | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
types: [assigned, edited, opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
strategy: | |
fail-fast: false | |
matrix: | |
container: | |
- 'alpine:3.17' | |
- 'alpine:3.18' | |
- 'debian:11' | |
- 'debian:12' | |
- 'fedora:37' | |
- 'fedora:38' | |
- 'ubuntu:20.04' | |
- 'ubuntu:22.04' | |
steps: | |
- uses: actions/checkout@v2 | |
- id: install_deps | |
run: | | |
case "${{ matrix.container }}" in | |
alpine*) | |
apk update | |
apk add autoconf automake bzip2 curl-dev file gcc libtool linux-headers make m4 musl-dev tar xz | |
;; | |
debian*|ubuntu*) | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update -q | |
apt-get install -q -y --no-install-recommends autoconf automake bzip2 gcc libcurl4-gnutls-dev libsystemd-dev libtool m4 make pkg-config xz-utils | |
;; | |
fedora*) | |
dnf -y update | |
dnf -y install autoconf automake bzip2 diffutils gcc glibc-devel libcurl-devel libvarlink-devel libtool make m4 systemd-devel xz | |
;; | |
esac | |
- id: configure | |
run: | | |
autoreconf --install | |
case "${{ matrix.container }}" in | |
alpine*|debian*|ubuntu*) | |
./configure --enable-libcurl --enable-debug | |
;; | |
# libvarlink is only available in Fedora | |
*) | |
./configure --enable-libcurl --enable-libvarlink --enable-debug | |
;; | |
esac | |
- id: make | |
run: | | |
make | |
make check | |
make distcheck |