blob: b999e7aefb65322e74c1390fcbca410ff00ccd17 [file] [log] [blame]
name: Build test
on:
pull_request:
paths-ignore:
- 'Documentation/**'
- 'lib*/docs/**'
push:
branches:
- 'cibuild'
- 'master'
- 'next'
- 'stable/**'
paths-ignore:
- 'Documentation/**'
- 'lib*/docs/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env:
- { COMPILER: "gcc", COMPILER_VERSION: "10", SANITIZE: "yes" }
- { COMPILER: "gcc", COMPILER_VERSION: "10", SANITIZE: "no" }
- { COMPILER: "clang", COMPILER_VERSION: "10", SANITIZE: "yes" }
- { COMPILER: "clang", COMPILER_VERSION: "10", SANITIZE: "no" }
env: ${{ matrix.env }}
steps:
- name: Repository checkout
uses: actions/checkout@v1
- name: Ubuntu setup
run: sudo -E .github/workflows/cibuild-setup-ubuntu.sh
- name: Configure & Make
run: .github/workflows/cibuild.sh CONFIGURE MAKE
- name: Check
run: sudo -E .github/workflows/cibuild.sh CHECK
- name: Make install
run: .github/workflows/cibuild.sh INSTALL
distcheck:
needs: build
runs-on: ubuntu-latest
env:
COMPILER: gcc
COMPILER_VERSION: 10
SANITIZE: no
steps:
- name: Repository checkout
uses: actions/checkout@v1
- name: Ubuntu setup
run: sudo -E .github/workflows/cibuild-setup-ubuntu.sh
- name: Configure
run: .github/workflows/cibuild.sh CONFIGURE
- name: Make distcheck
run: .github/workflows/cibuild.sh DISTCHECK