Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>

[ci-skip]
  • Loading branch information
benmcollins committed Jan 4, 2025
1 parent 344403b commit 8367f2d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -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

0 comments on commit 8367f2d

Please sign in to comment.