1
0
mirror of https://github.com/pdewacht/brlaser synced 2024-12-28 00:08:21 +01:00
brlaser/.github/workflows/build.yml

40 lines
917 B
YAML
Raw Normal View History

name: build
on: [ push, pull_request ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang++, gcc++ ]
steps:
- name: Add repository
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- name: Install packages
run: sudo apt install libcups2-dev
2023-02-20 21:26:38 +01:00
- uses: actions/checkout@v3
- name: Configure
run: cmake .
- name: Make
run: make
env:
2021-05-31 22:23:12 +02:00
CXX: ${{ matrix.compiler }}
- name: Run tests
run: make check
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang++, gcc++ ]
steps:
2023-02-20 21:26:38 +01:00
- uses: actions/checkout@v3
- name: Configure
run: cmake .
- name: Make
run: make
env:
2021-05-31 22:23:12 +02:00
CXX: ${{ matrix.compiler }}
- name: Run tests
run: make check