From d46894a71bad55d3879075e40564dd769b779eaa Mon Sep 17 00:00:00 2001 From: Marco Scardovi <100232474+scardracs@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:50:49 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9216cbb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +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: Install packages + run: sudo apt install libcups2-dev + - uses: actions/checkout@v2 + - 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@v2 + - name: Configure + run: cmake . + - name: Make + run: make + env: + CXX: ${{ matrix.compiler }} + - name: Run tests + run: make check