From 8367f2dd4117023eb81bf5e546cc76b443352299 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Sat, 4 Jan 2025 16:47:18 +0000 Subject: [PATCH] Update workflow Signed-off-by: Ben Collins [ci-skip] --- .github/workflows/build-and-test.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index fbfeb2d9..8299f020 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -22,8 +22,13 @@ jobs: brew: gnutls openssl@3 jansson pkgconf cmake doxygen graphviz apt: gnutls-dev libssl-dev libjansson-dev pkg-config check lcov valgrind - - name: Configure CMake on ${{ matrix.os }} - run: cmake -B ${{github.workspace}}/build -DENABLE_COVERAGE=YES + - if: matrix.os == "ubuntu-latest" + name: Configure CMake on ${{ matrix.os }} + run: cmake -B ${{github.workspace}}/build -DENABLE_COVERAGE=YES -DWITH_GNUTLS=NO + + - if: matrix.os == "macos-latest" + name: Configure CMake on ${{ matrix.os }} + run: cmake -B ${{github.workspace}}/build - name: Build on ${{ matrix.os }} working-directory: ${{github.workspace}}/build @@ -33,12 +38,12 @@ jobs: working-directory: ${{github.workspace}}/build run: make check - - if: ${{ matrix.os }} == "ubuntu-latest" + - if: matrix.os == "ubuntu-latest" name: Coverage on ${{ matrix.os }} working-directory: ${{github.workspace}}/build run: make check-code-coverage - - if: ${{ matrix.os }} == "ubuntu-latest" + - if: matrix.os == "ubuntu-latest" uses: codecov/codecov-action@v5.1.2 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -48,7 +53,7 @@ jobs: working-directory: ${{github.workspace}}/build run: ctest -T memcheck - - if: ${{ matrix.os }} == "macos-latest" + - if: matrix.os == "macos-latest" name: Documents on ${{ matrix.os }} working-directory: ${{github.workspace}}/build run: make doxygen-doc