123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- ---
- name: Checks
- on:
- push:
- branches:
- - master
- pull_request: null
- env:
- DO_NOT_TRACK: 1
- jobs:
- checksum-checks:
- name: Checksums
- runs-on: ubuntu-latest
- steps:
- - name: Git clone repository
- uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Run checksum checks on kickstart files
- env:
- LOCAL_ONLY: "true"
- run: |
- ./tests/installer/checksums.sh
- libressl-checks:
- name: LibreSSL
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Build
- run: >
- docker run -v "$PWD":/netdata -w /netdata alpine:latest /bin/sh -c
- 'apk add bash;
- ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata;
- apk del openssl openssl-dev;
- apk add libressl libressl-dev;
- autoreconf -ivf;
- ./configure;
- make;'
- clang-checks:
- name: Clang
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Build
- run: |
- docker build -f .github/dockerfiles/Dockerfile.clang .
- dist-checks:
- name: Dist
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Prepare environment
- run: |
- ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata
- sudo apt-get install -y libjson-c-dev libipmimonitoring-dev libcups2-dev libsnappy-dev \
- libprotobuf-dev libprotoc-dev libssl-dev protobuf-compiler \
- libnetfilter-acct-dev
- - name: Configure
- run: |
- autoreconf -ivf
- ./configure \
- --with-zlib \
- --with-math \
- --with-user=netdata \
- CFLAGS=-O2
- - name: Make dist
- run: |
- make dist
- - name: Verify & Set distfile
- run: |
- ls -lah netdata-*.tar.gz
- echo "DISTFILE=$(ls netdata-*.tar.gz)" >> $GITHUB_ENV
- - name: Save Packages
- uses: actions/upload-artifact@v2
- with:
- name: dist-archive
- path: ${{ github.workspace }}/${{ env.DISTFILE }}
- - name: Run run_install_with_dist_file.sh
- run: |
- ./.github/scripts/run_install_with_dist_file.sh "${DISTFILE}"
- gitignore-check:
- name: .gitignore
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Prepare environment
- run: ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata
- - name: Build netdata
- run: ./netdata-installer.sh --dont-start-it --disable-telemetry --dont-wait --install /tmp/install
- - name: Check that repo is clean
- run: |
- git status --porcelain=v1 > /tmp/porcelain
- if [ -s /tmp/porcelain ]; then
- cat /tmp/porcelain
- exit 1
- fi
|