From 7381de4fb947a3750ddd1dc136d9f7f8105fa097 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 29 May 2021 01:17:50 +0000 Subject: [PATCH] Add a github action for building SCST upon push and upon a pull request git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9431 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..7853ae6c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + compiler: [gcc, clang] + arch: [x86_64] + steps: + - uses: actions/checkout@v2 + - name: Install build-essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential debhelper devscripts dpkg-dev quilt + - name: Install multilib + run: | + sudo apt-get install -y gcc-multilib g++-multilib + if: ${{ matrix.arch == 'x86' }} + - name: Build + env: + CC: ${{ matrix.compiler }} + CFLAGS: -Werror ${{ matrix.arch == 'x86' && '-m32' || '' }} + LDFLAGS: ${{ matrix.arch == 'x86' && '-m32' || '' }} + run: make CC=${{matrix.compiler}} dpkg