From 9759c9c469417e2473b0d86a657ce835b42576fc Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 5 Jun 2021 23:25:58 +0200 Subject: [PATCH] Add github actions CI workflow --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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 0000000..669b7fb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +on: + # Trigger the workflow on push or + # pull request, but only for the + # master branch. + push: + branches: + - master + pull_request: + branches: + - master + # Weekly run to account for + # changed dependencies. + schedule: + - cron: '17 04 * * 0' + +name: CI +jobs: + build: + name: Build and test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + compiler: ['gcc', 'clang'] + fail-fast: false + env: + CC: ${{ matrix.compiler }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build the code + run: make + + - name: Test creating the release archive + run: make distcheck