From 2c40d1f84dda9706a241a42766df487ba3e9823a Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 30 Apr 2025 23:15:11 +0200 Subject: [PATCH] .github: create action to build library Signed-off-by: Joachim Wiberg --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..a6daf83 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Bob the Builder + +# Run on all branches, including all pull requests, except the 'dev' +# branch which we use for Coverity Scan (limited tokens/day) +on: + push: + branches: + - '**' + - '!dev' + pull_request: + branches: + - '**' + +jobs: + build: + name: ${{ matrix.compiler }} + runs-on: ubuntu-latest + strategy: + matrix: + compiler: [gcc, clang] + fail-fast: false + env: + MAKEFLAGS: -j3 + CC: ${{ matrix.compiler }} + steps: + - uses: actions/checkout@v4 + - name: Configure + run: | + ./autogen.sh + ./configure --prefix= --disable-silent-rules \ + --enable-sigstop --enable-terminal-bell + - name: Build + run: | + make + - name: Install to ~/tmp and Inspect + run: | + DESTDIR=~/tmp make install-strip + ls -lR ~/tmp