diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-02-05 06:03:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 06:03:53 +1000 |
commit | 04f7154fcaabba8f243a5e7838b194d746bbb659 (patch) | |
tree | ac6d1b29f1d92a32f85cf3f7d4751e559d734c3b /.github | |
parent | 0ea96aeebe04e15bdd080f32d00b9b87a0e0705a (diff) |
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
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 71 |
1 files changed, 71 insertions, 0 deletions
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' |