From ed491ecdbacbd96ed0bb3665d90a845c368ad601 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 3 Oct 2021 12:08:41 +0200 Subject: [PATCH] .github: enable bob Signed-off-by: Joachim Wiberg --- .github/workflows/build.yml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6299bb9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,68 @@ +name: Bob the Builder + +# Run on all branches, including all pull requests, except the 'dev' +# branch since that's where we run Coverity Scan (limited tokens/day) +on: + push: + branches: + - '**' + - '!dev' + pull_request: + branches: + - '**' + +jobs: + build: + # Verify we can build on latest Ubuntu with both gcc and clang + name: ${{ matrix.compiler }} + runs-on: ubuntu-latest + strategy: + matrix: + compiler: [gcc, clang] + fail-fast: false + env: + MAKEFLAGS: -j3 + CC: ${{ matrix.compiler }} + steps: + - name: Install dependencies + run: | + sudo apt-get -y update + sudo apt-get -y install tree doxygen + - uses: actions/checkout@v2 + - name: Configure + run: | + ./autogen.sh + ./configure --prefix= --disable-silent-rules + - name: Build + run: | + make + - name: Install to ~/tmp and Inspect + run: | + DESTDIR=~/tmp make install-strip + tree ~/tmp + - name: Run Unit Tests + run: | + make check || (cat test/test-suite.log; false) + - name: Upload Test Results + uses: actions/upload-artifact@v2 + with: + name: libuev-test-${{ matrix.compiler }} + path: test/* + debian: + name: Verify Debian Package + runs-on: ubuntu-latest + container: debian:stable + steps: + - uses: actions/checkout@v2 + - name: Installing dependencies + run: | + apt-get update + apt-get install -y build-essential autoconf automake pkg-config doxygen \ + dpkg-dev debhelper devscripts + - name: Building Debian package + run: | + ./autogen.sh + ./configure + make distcheck + make package + cat ../*.changes