Add CI configuration

master
nirenjan 2021-12-03 23:13:17 -08:00
parent 441945d669
commit 5213bef139
1 changed files with 47 additions and 0 deletions

47
.github/workflows/build.yml vendored 100644
View File

@ -0,0 +1,47 @@
name: Build/Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: ${{ join(matrix.*, '/') }}
runs-on: ${{ matrix.os }}
continue-on-error: "!${{ startsWith(matrix.os, 'ubuntu-') }}"
env:
CC: ${{ matrix.cc }}
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- macos-10.15
- macos-11
- windows-2019
- windows-2022
cc:
- gcc
- clang
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Generate build scripts
run: ./autogen.sh
- name: Configure
run: ./configure
- name: Build
run: make V=0
- name: Test
run: make V=0 check
- name: Distcheck
run: make distcheck