diff --git a/clang-tidy/README.md b/clang-tidy/README.md index 9dad1fc2..4397addc 100644 --- a/clang-tidy/README.md +++ b/clang-tidy/README.md @@ -40,6 +40,7 @@ jobs: | target-packages | true | The target packages to analyze by Clang-Tidy. | | target-files | false | The target files. | | build-depends-repos | false | The `.repos` file that includes build dependencies. | +| cmake-build-type | false | The value for `CMAKE_BUILD_TYPE`. | | token | false | The token for build dependencies and `.clang-tidy`. | ## Outputs diff --git a/clang-tidy/action.yaml b/clang-tidy/action.yaml index 903da901..2ec3dec2 100644 --- a/clang-tidy/action.yaml +++ b/clang-tidy/action.yaml @@ -17,6 +17,10 @@ inputs: build-depends-repos: description: "" required: false + cmake-build-type: + description: "" + required: false + default: Release token: description: "" required: false @@ -85,7 +89,7 @@ runs: . /opt/ros/${{ inputs.rosdistro }}/setup.sh colcon build --event-handlers console_cohesion+ \ --packages-up-to ${{ inputs.target-packages }} \ - --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + --cmake-args -DCMAKE_BUILD_TYPE=${{ inputs.cmake-build-type }} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON shell: bash - name: Retrieve .clang-tidy diff --git a/colcon-build/README.md b/colcon-build/README.md index f9cf6ccc..2c98d9de 100644 --- a/colcon-build/README.md +++ b/colcon-build/README.md @@ -35,6 +35,7 @@ jobs: | rosdistro | true | ROS distro. | | target-packages | true | The target packages to build. | | build-depends-repos | false | The `.repos` file that includes build dependencies. | +| cmake-build-type | false | The value for `CMAKE_BUILD_TYPE`. | | token | false | The token for build dependencies. | ## Outputs diff --git a/colcon-build/action.yaml b/colcon-build/action.yaml index 1346a332..281f8660 100644 --- a/colcon-build/action.yaml +++ b/colcon-build/action.yaml @@ -11,6 +11,10 @@ inputs: build-depends-repos: description: "" required: false + cmake-build-type: + description: "" + required: false + default: Release token: description: "" required: false @@ -62,7 +66,7 @@ runs: . /opt/ros/${{ inputs.rosdistro }}/setup.sh colcon build --event-handlers console_cohesion+ \ --packages-above-and-dependencies ${{ inputs.target-packages }} \ - --cmake-args -DCMAKE_BUILD_TYPE=Release \ + --cmake-args -DCMAKE_BUILD_TYPE=${{ inputs.cmake-build-type }} \ --mixin coverage-gcc coverage-pytest compile-commands shell: bash