From 9546acc17c231ee4e7a9201e336ea4a3ca48ecac Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Mon, 31 May 2021 16:21:33 -0400 Subject: [PATCH 1/4] Add GitHub Actions for continuous integration --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..affb98e --- /dev/null +++ b/.github/workflows/build.yml @@ -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 From bf02b1d7b7a9124f9602e947d4a460cc71a157ed Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Mon, 31 May 2021 16:23:12 -0400 Subject: [PATCH 2/4] Fix syntax --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index affb98e..32195af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - name: Make run: make env: - CXX: {{ matrix.compiler }} + CXX: ${{ matrix.compiler }} - name: Run tests run: make check macos: @@ -30,6 +30,6 @@ jobs: - name: Make run: make env: - CXX: {{ matrix.compiler }} + CXX: ${{ matrix.compiler }} - name: Run tests run: make check From b58a014a515fc380140e290ea9c4b22c8d0b0dc3 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Mon, 31 May 2021 16:25:48 -0400 Subject: [PATCH 3/4] Fix GitHub Actions script --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32195af..7dc7a8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,7 @@ jobs: steps: - name: Add repository run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" + - uses: actions/checkout@v2 - name: Configure run: cmake . - name: Make @@ -25,6 +26,7 @@ jobs: matrix: compiler: [ clang++, gcc++ ] steps: + - uses: actions/checkout@v2 - name: Configure run: cmake . - name: Make From df7c37eacfab68f3f8d4eeddeda157825497aec9 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Mon, 31 May 2021 16:28:34 -0400 Subject: [PATCH 4/4] Add libcups2-dev to Linux build environment --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7dc7a8f..9216cbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ jobs: 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 .