Skip to content

Commit 5123b59

Browse files
authored
Fixes failing Release build (#377)
1 parent 9f9eaaf commit 5123b59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/pr_validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ jobs:
3737
shell: bash
3838
run: |
3939
source /opt/ros/jazzy/setup.bash
40-
colcon build --packages-up-to ${{ steps.get-changed-packages.outputs.changed-packages }}
40+
colcon build --packages-up-to ${{ steps.get-changed-packages.outputs.changed-packages }} --cmake-args -DCMAKE_BUILD_TYPE=Release
4141
4242
- name: Build Above Changes
4343
if: ${{ steps.get-changed-packages.outputs.changed-packages != '' }}
4444
shell: bash
4545
run: |
4646
source /opt/ros/jazzy/setup.bash
47-
colcon build --packages-above-and-dependencies ${{ steps.get-changed-packages.outputs.changed-packages }}
47+
colcon build --packages-above-and-dependencies ${{ steps.get-changed-packages.outputs.changed-packages }} --cmake-args -DCMAKE_BUILD_TYPE=Release
4848
4949
- name: Test Changed Packages
5050
shell: bash

ateam_kenobi/src/plays/stop_plays/stop_helpers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ bool isPointInOrBehindGoal(
159159
std::vector<ateam_geometry::AnyShape> getAddedObstacles(const World & world)
160160
{
161161
std::vector<ateam_geometry::AnyShape> obstacles;
162+
obstacles.reserve(3);
162163

163164
const auto half_field_length = world.field.field_length / 2.0;
164165
const auto half_goal_width = world.field.goal_width / 2.0;

0 commit comments

Comments
 (0)