Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/json/boost-…
Browse files Browse the repository at this point in the history
…json
  • Loading branch information
f0reachARR committed Oct 3, 2024
2 parents 04a10d6 + 8d2789c commit 8c62c00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/BuildAndRun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
job1:
name: BuildAndRun
Expand All @@ -31,6 +34,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: [RelWithDebInfo, Release] # Debug build type is currently unavailable. @TODO Fix problem and add Debug build.
steps:
- name: Suppress warnings
run: git config --global --add safe.directory '*'
Expand Down Expand Up @@ -74,7 +78,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
Expand Down Expand Up @@ -103,7 +107,7 @@ jobs:
- name: Upload Lcov result
uses: actions/upload-artifact@v4
with:
name: lcov
name: lcov-${{ matrix.cmake_build_type }}
path: lcov
retention-days: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
git config --global user.name "Release Bot"
git config --global user.email "[email protected]"
git config --global --add safe.directory /__w/scenario_simulator_v2/scenario_simulator_v2
git config --global credential.helper ${{ secrets.GITHUB_TOKEN }}
git config --global credential.helper ${{ secrets.BLOOM_GITHUB_TOKEN }}
git config pull.rebase false
- name: Get old version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ auto RelativeClearanceCondition::evaluate() -> Object
};

return asBoolean(triggering_entities.apply([&](const auto & triggering_scenario_object) {
assert(triggering_scenario_object.is<ScenarioObject>());
assert(triggering_scenario_object.template is<ScenarioObject>());
if (not entity_refs.empty()) {
return std::all_of(
entity_refs.begin(), entity_refs.end(), [&](const auto & target_entity_ref) {
Expand Down Expand Up @@ -181,7 +181,7 @@ auto RelativeClearanceCondition::evaluate() -> Object
bool is_included = false;
triggering_entities.apply(
[target_candidate, &is_included](const auto & triggering_scenario_object) {
assert(triggering_scenario_object.is<ScenarioObject>());
assert(triggering_scenario_object.template is<ScenarioObject>());
if (triggering_scenario_object.name() == target_candidate.name) {
is_included = true;
}
Expand Down

0 comments on commit 8c62c00

Please sign in to comment.