Skip to content

Commit

Permalink
Test static library builds in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Feb 19, 2024
1 parent 9dbb767 commit bc949fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ on:

jobs:
cmake:
name: cmake (${{ matrix.ros_distro }}, ${{ matrix.preset }}, ${{ matrix.compiler.name }})
name: cmake (${{ matrix.ros_distro }}, ${{ matrix.preset }}, ${{ matrix.compiler.name }} ${{ matrix.type.name }})
strategy:
matrix:
ros_distro: [humble, rolling]
preset: [debug, release, asan, codecov]
compiler:
- { name: gcc }
- { name: clang, flags: -DCMAKE_CXX_COMPILER=clang++ }
type:
- { name: Static, flags: -DBUILD_SHARED_LIBS=OFF }
- { name: Shared, flags: -DBUILD_SHARED_LIBS=ON }
exclude:
- preset: codecov
compiler: { name: clang }
Expand All @@ -41,7 +44,7 @@ jobs:
if: matrix.compiler.name == 'clang'
run: sudo apt update && sudo apt install clang
- name: Configure
run: cmake --preset ${{ matrix.preset }} ${{ matrix.compiler.flags }} -DCMAKE_INSTALL_PREFIX=install -DCMAKE_VERBOSE_MAKEFILE=ON
run: cmake --preset ${{ matrix.preset }} ${{ matrix.compiler.flags }} ${{ matrix.type.flags }} -DCMAKE_INSTALL_PREFIX=install -DCMAKE_VERBOSE_MAKEFILE=ON
- name: Build
run: cmake --build build/${{ matrix.preset }} --target install
- name: Test
Expand Down

0 comments on commit bc949fd

Please sign in to comment.