Add github actions CI workflow

This commit is contained in:
Iustin Pop
2021-06-05 23:25:58 +02:00
parent 5dbcde9d0d
commit 9759c9c469

37
.github/workflows/ci.yml vendored Normal file
View File

@@ -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