2021-05-31 22:21:33 +02:00
|
|
|
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"
|
2021-05-31 22:28:34 +02:00
|
|
|
- name: Install packages
|
|
|
|
run: sudo apt install libcups2-dev
|
2021-05-31 22:25:48 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-05-31 22:21:33 +02:00
|
|
|
- name: Configure
|
|
|
|
run: cmake .
|
|
|
|
- name: Make
|
|
|
|
run: make
|
|
|
|
env:
|
2021-05-31 22:23:12 +02:00
|
|
|
CXX: ${{ matrix.compiler }}
|
2021-05-31 22:21:33 +02:00
|
|
|
- name: Run tests
|
|
|
|
run: make check
|
|
|
|
macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
compiler: [ clang++, gcc++ ]
|
|
|
|
steps:
|
2021-05-31 22:25:48 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-05-31 22:21:33 +02:00
|
|
|
- name: Configure
|
|
|
|
run: cmake .
|
|
|
|
- name: Make
|
|
|
|
run: make
|
|
|
|
env:
|
2021-05-31 22:23:12 +02:00
|
|
|
CXX: ${{ matrix.compiler }}
|
2021-05-31 22:21:33 +02:00
|
|
|
- name: Run tests
|
|
|
|
run: make check
|