-
Notifications
You must be signed in to change notification settings - Fork 116
110 lines (102 loc) · 2.72 KB
/
builds.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
name: builds
on:
- push
- pull_request
permissions: read-all
env:
DEFAULT_CFLAGS: "-Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function"
# Apt sometimes likes to ask for user input, this will prevent that.
DEBIAN_FRONTEND: "noninteractive"
jobs:
almalinux-9:
name: AlmaLinux 9
runs-on: ubuntu-latest
container: almalinux:9
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
dnf -y install make \
autoconf \
automake \
libtool \
gcc \
gcc-c++ \
make \
pkgconfig \
zlib-devel
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
- run: make -j2
- run: make install
- run: make distcheck
almalinux-8:
name: AlmaLinux 8
runs-on: ubuntu-latest
container: almalinux:8
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
dnf -y install make \
autoconf \
automake \
libtool \
gcc \
gcc-c++ \
make \
pkgconfig \
zlib-devel
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
- run: make -j2
- run: make install
- run: make distcheck
ubuntu-2004:
name: Ubuntu 20.04
runs-on: ubuntu-latest
container: ubuntu:20.04
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
apt update
apt-get upgrade -y
apt-get -y install make \
autoconf \
build-essential \
automake \
dpkg-dev \
debhelper \
libtool \
make \
pkg-config \
zlib1g-dev
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
- run: make -j2
- run: make install
- run: make distcheck
ubuntu-2204:
name: Ubuntu 22.04
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
apt update
apt-get upgrade -y
apt-get -y install make \
autoconf \
build-essential \
automake \
libtool \
make \
pkg-config \
zlib1g-dev
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
- run: make -j2
- run: make install
- run: make distcheck