From 94e2ce275dfd035ed059a56eec4975e2faac8a65 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Thu, 1 Oct 2020 19:55:27 +0200 Subject: Create build.yml (#3651) --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..a8779fc00 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: install GCC 10 + run: sudo apt-get install gcc-10 + - name: configure + run: CC=gcc-10 ./configure --enable-fatal-warnings --enable-analyzer + - name: make + run: make + # Disabled for now because of broken clang-10 support: https://github.com/actions/virtual-environments/issues/1536 + #build-clang: + # runs-on: ubuntu-20.04 + # steps: + # - uses: actions/checkout@v2 + # - name: install clang tools 10 + # run: sudo apt-get install clang-tools-10 + # - name: configure + # run: CC=clang-10 ./configure --enable-fatal-warnings + # - name: make + # run: NO_EXTRA_CFLAGS="yes" scan-build-10 make + cppcheck: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: install cppcheck + run: sudo apt-get install cppcheck + - name: cppcheck + run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance . + -- cgit v1.2.3-54-g00ecf