You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
917 B
39 lines
917 B
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 |
|
- uses: actions/checkout@v3 |
|
- 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: |
|
- uses: actions/checkout@v3 |
|
- name: Configure |
|
run: cmake . |
|
- name: Make |
|
run: make |
|
env: |
|
CXX: ${{ matrix.compiler }} |
|
- name: Run tests |
|
run: make check
|
|
|