1
0
mirror of https://github.com/pdewacht/brlaser synced 2024-12-26 07:28:21 +01:00

Add GitHub Actions for continuous integration

This commit is contained in:
Evan Miller 2021-05-31 16:21:33 -04:00
parent 9d7ddda838
commit 9546acc17c

35
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: build
on: [ push, pull_request ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang++, gcc++, gcc-9++, gcc-10++ ]
steps:
- name: Add repository
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- name: Configure
run: cmake .
- name: Make
run: make
env:
CXX: {{ matrix.compiler }}
- name: Run tests
run: make check
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang++, gcc++ ]
steps:
- name: Configure
run: cmake .
- name: Make
run: make
env:
CXX: {{ matrix.compiler }}
- name: Run tests
run: make check