CI #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ master ] | |
workflow_dispatch: | |
schedule: | |
- cron: '23 7 * * 5' | |
jobs: | |
test: | |
name: Test ${{ matrix.compiler }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
compiler: [gcc, clang] | |
os: [ubuntu-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile and run tests | |
run: make && make test | |
env: | |
CC: ${{ matrix.compiler }} | |
test_alpine: | |
name: Test on Alpine Linux | |
runs-on: ubuntu-latest | |
container: docker://alpine | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install build dependencies | |
run: apk add build-base | |
- name: Compile and run tests | |
run: make && make test | |
multiarch_test: | |
name: Test on ${{ matrix.arch }} | |
strategy: | |
matrix: | |
arch: [armv7, aarch64, s390x, ppc64le] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: uraimo/[email protected] | |
name: Compile and run tests | |
id: test | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ubuntu20.04 | |
githubToken: ${{ github.token }} | |
install: | | |
apt-get update -q -y | |
apt-get install -y gcc make | |
rm -rf /var/lib/apt/lists/* | |
run: make && make test |