From 04f7154fcaabba8f243a5e7838b194d746bbb659 Mon Sep 17 00:00:00 2001 From: James Mills Date: Wed, 5 Feb 2020 06:03:53 +1000 Subject: Adds GHA Workflow to actually Build the Agent across all the OS/Distro(s) we support today (#7969) * Fixed shellcheck warnings/errors and some legitimate bugs in ./packaging/installer/install-required-packages.sh * Fixed erroneous \ * Removed accidentally committed test.sh :D * Remove redundant redirection on grep commands * Fixed erroneous trailing gon search/replace expression * Fixed incorrect expansion of in apt-get invocation * Fixed incorrect expanasion of on other package managers too * Fixed insistent prompt search/replace (adding space) :D * Fixed (properly) handling of opts to pakage managers using a proper array and array expansion * Re-fixed: echo * Bah humbug :D * Rebased on master * Fixed erroneous \ * Added support for CentOS 8.x * Removed extra space * Rebased on centos8_deps_2 * Added GHA workflor for testing install-required-packages * Rebased on centos8_deps_3 * Only test on archlinux:latest * Add Ubuntu 16.04 and 19.04 to the matrix * Remove test.sh :) * Added GHA Workflow to actually Build the Agent across all the OS/Distro(s) we support today * Added option --netdta-all which seems to tell install-required-pacakges to install all dependencies * Fixed the netdata-all argument * Disable centos:8 for now * Use all argument * Fix version check for CentOS 8.x * Automatically install Okay repo for CentOS 6.x * Disable opensuse (for now) * Fixed CentOS 6.x version dtection * Remove Debian jessie (unsupported) Added Debian bullseye --- .github/workflows/build.yml | 71 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..9b91588145 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,71 @@ +--- +name: Builder +on: + push: + branches: + - master + pull_request: +jobs: + build: + name: Build + strategy: + matrix: + distro: + - 'alpine:3.11' + - 'alpine:3.10' + - 'alpine:3.9' + - 'archlinux:latest' + #- 'centos:8' + - 'centos:7' + - 'centos:6' + - 'debian:bullseye' + - 'debian:buster' + - 'debian:stretch' + - 'fedora:31' + - 'fedora:30' + - 'fedora:29' + #- 'opensuse/leap:15.2' + #- 'opensuse/leap:15.1' + #- 'opensuse/leap:15.0' + #- 'opensuse/tumbleweed:latest' + - 'ubuntu:20.04' + - 'ubuntu:19.10' + - 'ubuntu:19.04' + - 'ubuntu:18.04' + - 'ubuntu:16.04' + include: + - distro: 'alpine:3.11' + pre: 'apk add -U bash' + - distro: 'alpine:3.10' + pre: 'apk add -U bash' + - distro: 'alpine:3.9' + pre: 'apk add -U bash' + + - distro: 'archlinux:latest' + pre: 'pacman --noconfirm -Sy grep' + + - distro: 'debian:bullseye' + pre: 'apt-get update' + - distro: 'debian:buster' + pre: 'apt-get update' + - distro: 'debian:stretch' + pre: 'apt-get update' + + - distro: 'ubuntu:20.04' + pre: 'apt-get update' + - distro: 'ubuntu:19.10' + pre: 'apt-get update' + - distro: 'ubuntu:19.04' + pre: 'apt-get update' + - distro: 'ubuntu:18.04' + pre: 'apt-get update' + - distro: 'ubuntu:16.04' + pre: 'apt-get update' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Build on ${{ matrix.distro }} + env: + PRE: ${{ matrix.pre }} + run: | + 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 all && ./netdata-installer.sh -u --dont-wait --dont-start-it --disable-go' -- cgit v1.2.3