From 725ba47e345e289471add8feb14146535c8f78a2 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 15 Jan 2020 17:30:25 +0100 Subject: [PATCH] CI: Build with and without thread support. --- .github/workflows/ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 931f196..a7d28ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,14 @@ jobs: name: compile - Ubuntu runs-on: ubuntu-latest + strategy: + matrix: + build-opts: [ "-DUSE_THREADS=ON", "-DUSE_THREADS=OFF" ] + steps: - uses: actions/checkout@v1 - name: Configure - run: mkdir build && cd build && cmake .. + run: mkdir build && cd build && cmake ${{matrix.build-opts}} .. - name: Build run: cmake --build build @@ -23,18 +27,27 @@ jobs: name: compile - MacOS runs-on: macos-latest + strategy: + matrix: + build-opts: [ "-DUSE_THREADS=ON", "-DUSE_THREADS=OFF" ] + steps: - uses: actions/checkout@v1 - name: Dependancies run: brew install openssl - name: Configure - run: mkdir build && cd build && cmake -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 .. + run: mkdir build && cd build && cmake ${{matrix.build-opts}} -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 .. - name: Build run: cmake --build build win: name: compile - windows runs-on: windows-latest + + strategy: + matrix: + build-opts: [ "-DUSE_THREADS=ON", "-DUSE_THREADS=OFF" ] + steps: - uses: actions/checkout@v1 - name: Dependancies @@ -43,6 +56,6 @@ jobs: Invoke-WebRequest -Uri https://mirror.firedaemon.com/OpenSSL/openssl-1.1.1e-dev.zip -OutFile openssl.zip Expand-Archive openssl.zip - name: Configure - run: cd build; cmake -D OPENSSL_ROOT_DIR="$pwd\openssl\openssl-1.1\x64" .. + run: cd build; cmake ${{matrix.build-opts}} -D OPENSSL_ROOT_DIR="$pwd\openssl\openssl-1.1\x64" .. - name: Build run: cmake --build build