Change-Id: I51c9587f819a95c1177f4e8678afea71eaaa038bchanges/93/40193/9
| @ -0,0 +1,13 @@ | |||||
| FROM debian:buster | |||||
| COPY entrypoint.sh /entrypoint.sh | |||||
| # avoid "debconf: (TERM is not set, so the dialog frontend is not usable.)" | |||||
| ENV DEBIAN_FRONTEND noninteractive | |||||
| # disable man-db to speed up builds | |||||
| RUN echo 'man-db man-db/auto-update boolean false' | debconf-set-selections | |||||
| RUN apt-get update && apt-get -y install build-essential | |||||
| ENTRYPOINT ["/entrypoint.sh"] | |||||
| @ -0,0 +1,6 @@ | |||||
| name: "Build Docker image based on Debian/buster" | |||||
| description: "Build Docker image based on Debian/buster" | |||||
| runs: | |||||
| using: 'docker' | |||||
| image: 'Dockerfile' | |||||
| @ -0,0 +1,16 @@ | |||||
| #!/bin/bash | |||||
| set -eu -o pipefail | |||||
| echo "*** Starting execution of '$0' ***" | |||||
| echo "** Installing build dependencies **" | |||||
| apt-get -y build-dep -Ppkg.ngcp-rtpengine.nobcg729 . | |||||
| echo "** Building Debian package **" | |||||
| dpkg-buildpackage -Ppkg.ngcp-rtpengine.nobcg729 | |||||
| # We're inside /github/workspace/ | |||||
| echo "** Copying Debian package files to workspace **" | |||||
| cp ../*.deb ../*.buildinfo ../workspace/ | |||||
| echo "*** Finished execution of '$0' ***" | |||||
| @ -0,0 +1,13 @@ | |||||
| FROM debian:sid | |||||
| COPY entrypoint.sh /entrypoint.sh | |||||
| # avoid "debconf: (TERM is not set, so the dialog frontend is not usable.)" | |||||
| ENV DEBIAN_FRONTEND noninteractive | |||||
| # disable man-db to speed up builds | |||||
| RUN echo 'man-db man-db/auto-update boolean false' | debconf-set-selections | |||||
| RUN apt-get update && apt-get -y install build-essential | |||||
| ENTRYPOINT ["/entrypoint.sh"] | |||||
| @ -0,0 +1,6 @@ | |||||
| name: "Build Docker image based on Debian/sid" | |||||
| description: "Build Docker image based on Debian/sid" | |||||
| runs: | |||||
| using: 'docker' | |||||
| image: 'Dockerfile' | |||||
| @ -0,0 +1,16 @@ | |||||
| #!/bin/bash | |||||
| set -eu -o pipefail | |||||
| echo "*** Starting execution of '$0' ***" | |||||
| echo "** Installing build dependencies **" | |||||
| apt-get -y build-dep -Ppkg.ngcp-rtpengine.nobcg729 . | |||||
| echo "** Building Debian package **" | |||||
| dpkg-buildpackage -Ppkg.ngcp-rtpengine.nobcg729 | |||||
| # We're inside /github/workspace/ | |||||
| echo "** Copying Debian package files to workspace **" | |||||
| cp ../*.deb ../*.buildinfo ../workspace/ | |||||
| echo "*** Finished execution of '$0' ***" | |||||
| @ -0,0 +1,54 @@ | |||||
| name: Debian Packaging | |||||
| on: | |||||
| push: | |||||
| pull_request: | |||||
| schedule: | |||||
| - cron: '0 8 * * *' | |||||
| jobs: | |||||
| build-deb-buster: | |||||
| runs-on: ubuntu-latest | |||||
| name: Debian pipeline for buster | |||||
| steps: | |||||
| - name: Checkout source | |||||
| uses: actions/checkout@v2 | |||||
| - name: Execute Docker debpkg action | |||||
| uses: ./.github/actions/debpkg-buster | |||||
| - name: Store Debian package artifacts | |||||
| uses: actions/upload-artifact@v2 | |||||
| with: | |||||
| name: Debian binary package files | |||||
| path: '*.deb' | |||||
| - name: Store Debian package build info | |||||
| uses: actions/upload-artifact@v2 | |||||
| with: | |||||
| name: Debian buildinfo file | |||||
| path: '*.buildinfo' | |||||
| build-deb-sid: | |||||
| runs-on: ubuntu-latest | |||||
| name: Debian pipeline for sid | |||||
| steps: | |||||
| - name: Checkout source | |||||
| uses: actions/checkout@v2 | |||||
| - name: Execute Docker debpkg action | |||||
| uses: ./.github/actions/debpkg-sid | |||||
| - name: Store Debian package artifacts | |||||
| uses: actions/upload-artifact@v2 | |||||
| with: | |||||
| name: Debian binary package files | |||||
| path: '*.deb' | |||||
| - name: Store Debian package build info | |||||
| uses: actions/upload-artifact@v2 | |||||
| with: | |||||
| name: Debian buildinfo file | |||||
| path: '*.buildinfo' | |||||
| @ -0,0 +1,30 @@ | |||||
| name: Code Testing | |||||
| on: | |||||
| push: | |||||
| pull_request: | |||||
| schedule: | |||||
| - cron: '0 8 * * *' | |||||
| jobs: | |||||
| shellcheck: | |||||
| runs-on: ubuntu-latest | |||||
| name: Run shellcheck | |||||
| steps: | |||||
| - name: Checkout source | |||||
| uses: actions/checkout@v2 | |||||
| - name: Display original shellcheck version | |||||
| run: shellcheck --version | |||||
| - name: Update shellcheck to latest stable version | |||||
| run: | | |||||
| wget -qO- https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz | tar -xJv | |||||
| sudo cp shellcheck-stable/shellcheck /usr/bin/ | |||||
| - name: Display current shellcheck version | |||||
| run: shellcheck --version | |||||
| - name: Shellcheck execution | |||||
| run: shellcheck --exclude=SC1090,SC1091 debian/*.init debian/*.post* debian/*.pre* debian/*-setup el/*.init tests/simulator-tcp.sh utils/build_deps.sh utils/patch-kernel | |||||