From e833af56de08e46bf2089e23fed205dfaeff7d95 Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Wed, 2 Oct 2024 14:27:35 +0900 Subject: [PATCH] add matrix Signed-off-by: Masaya Kataoka --- .github/workflows/BuildAndRun.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/BuildAndRun.yaml b/.github/workflows/BuildAndRun.yaml index fdf30f65e2a..8a86a3e7261 100644 --- a/.github/workflows/BuildAndRun.yaml +++ b/.github/workflows/BuildAndRun.yaml @@ -31,6 +31,7 @@ jobs: matrix: rosdistro: [humble] runs_on: [ubuntu-22.04] # macos-14 is added for arm support. See also https://x.com/github/status/1752458943245189120?s=20 + cmake_build_type: [Debug, RelWithDebInfo, Release] steps: - name: Suppress warnings run: git config --global --add safe.directory '*' @@ -74,7 +75,7 @@ jobs: - name: Build packages run: | source /opt/ros/${{ matrix.rosdistro }}/setup.bash - colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_CPP_MOCK_SCENARIOS=ON -DBUILD_TESTING=true -DCMAKE_CXX_FLAGS='-fprofile-arcs -ftest-coverage' -DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage' --packages-up-to ${{ steps.list_packages.outputs.package_list }} + colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} -DBUILD_CPP_MOCK_SCENARIOS=ON -DBUILD_TESTING=true -DCMAKE_CXX_FLAGS='-fprofile-arcs -ftest-coverage' -DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage' --packages-up-to ${{ steps.list_packages.outputs.package_list }} shell: bash - name: Colcon test