1
---
2
-name: Installer
2
+name: Builder
3
on:
4
push:
5
branches:
6
- master
7
- paths:
8
- - 'packaging/installer/install-required-packages.sh'
7
pull_request:
10
- paths:
11
- - 'packaging/installer/install-required-packages.sh'
8
jobs:
13
- install-required-packages:
14
- name: Required Packages
9
+ build:
10
+ name: Build & Install
11
strategy:
12
matrix:
13
distro:
14
+ - 'alpine:edge'
15
- 'alpine:3.11'
16
- 'alpine:3.10'
17
- 'alpine:3.9'
19
- 'centos:8'
20
- 'centos:7'
21
- 'centos:6'
22
+ - 'debian:bullseye'
23
- 'debian:buster'
26
- - 'debian:jessie'
24
- 'debian:stretch'
25
+ - 'debian:jessie'
26
- 'fedora:31'
27
- 'fedora:30'
30
- - 'fedora:29'
28
- 'opensuse/leap:15.2'
29
- 'opensuse/leap:15.1'
33
- - 'opensuse/leap:15.0'
30
- 'opensuse/tumbleweed:latest'
31
- 'ubuntu:20.04'
32
- 'ubuntu:19.10'
37
- - 'ubuntu:19.04'
33
- 'ubuntu:18.04'
34
- 'ubuntu:16.04'
35
include:
36
+ - distro: 'alpine:edge'
37
+ pre: 'apk add -U bash'
38
- distro: 'alpine:3.11'
39
pre: 'apk add -U bash'
40
- distro: 'alpine:3.10'
45
- distro: 'archlinux:latest'
46
pre: 'pacman --noconfirm -Sy grep'
47
51
- - distro: 'debian:buster'
48
+ - distro: 'debian:bullseye'
49
pre: 'apt-get update'
53
- - distro: 'debian:jessie'
50
+ - distro: 'debian:buster'
51
pre: 'apt-get update'
52
- distro: 'debian:stretch'
53
pre: 'apt-get update'
54
+ - distro: 'debian:jessie'
55
+ pre: >
56
+ echo "deb http://archive.debian.org/debian/ jessie-backports main contrib non-free" >> /etc/apt/sources.list.d/99-archived.list &&
57
+ apt-get update -o Acquire::Check-Valid-Until=false
58
59
- distro: 'ubuntu:20.04'
60
pre: 'apt-get update'
70
steps:
71
- name: Git clone repository
72
uses: actions/checkout@v2
72
- - name: Test installed-required-packages.sh on ${{ matrix.distro }}
73
+ - name: install-required-packages.sh on ${{ matrix.distro }}
74
env:
75
PRE: ${{ matrix.pre }}
76
run: |
76
- docker run --rm -e PRE -v $PWD:/netdata -w /netdata ${{ matrix.distro }} /bin/sh -c '[ -n "${PRE}" ] && ${PRE}; ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive'
77
+ echo $PRE > ./prep-cmd.sh
78
+ docker build . -f .github/dockerfiles/Dockerfile.build_test -t build_test --build-arg BASE=${{ matrix.distro }}
79
+ - name: Regular build on ${{ matrix.distro }}
80
+ run: |
81
+ docker run --rm -e PRE -w /netdata build_test /bin/sh -c 'autoreconf -ivf && ./configure && make -j2'
82
+ - name: netdata-installer on ${{ matrix.distro }}
83
+ run: |
84
+ docker run --rm -e PRE -w /netdata build_test /bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it'