-
Notifications
You must be signed in to change notification settings - Fork 29
66 lines (59 loc) · 1.76 KB
/
build-checks.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
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