Skip to content

Commit

Permalink
build: fix CI issues (#33)
Browse files Browse the repository at this point in the history
* gha: update actions
* fix: clang-tidy issue
* fix: linking order
* fix: indentation
  • Loading branch information
rhaschke authored Apr 13, 2024
1 parent 1d9d695 commit 0818f52
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Checks: 'performance-*,
modernize-redundant-void-arg,
modernize-use-nullptr,
modernize-use-default,
modernize-use-emplace,
modernize-use-emplace,
modernize-use-override,
modernize-use-using,
modernize-loop-convert,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
name: "${{ matrix.distro }} mj-${{ matrix.mujoco }}${{ matrix.env.CATKIN_LINT && ' + catkin_lint' || ''}}${{ matrix.env.CCOV && ' + ccov' || ''}}${{ matrix.env.CLANG_TIDY && (github.event_name != 'workflow_dispatch' && ' + clang-tidy (delta)' || ' + clang-tidy (all)') || '' }}"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache upstream workspace
uses: rhaschke/cache@main
with:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
uses: rhaschke/industrial_ci@ros-one

- name: Upload test artifacts (on failure)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results)
with:
name: test-results-${{ matrix.distro }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: Check for apt updates
uses: rhaschke/docker-run-action@v4
uses: rhaschke/docker-run-action@main
continue-on-error: true
id: apt
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
name: pre-commit
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install clang-format
run: sudo apt-get update && sudo apt-get install clang-format -y
# Catkin lint is installed but not included in pre-commit
- name: Install catkin_lint
uses: DavidPL1/install-catkin_lint-action@ros2
- uses: pre-commit/[email protected].0
- uses: pre-commit/[email protected].1
id: precommit
- name: Upload pre-commit changes
if: failure() && steps.precommit.outcome == 'failure'
Expand Down
2 changes: 2 additions & 0 deletions mujoco_ros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
### Fixed
* Repaired SIGINT handler callback. `C-c` in the roslaunch terminal now shuts down the MuJoCo ROS node instead of escalating to SIGTERM.
* Added actionlib to the list of mujoco_ros' dependencies.
* Updated CI actions (#33).
* Fixed linking order for mujoco_ros_mocap tests (#33).

### Changed
* replaced `boost::shared_ptr` with `std::shared_ptr` or `std::unique_ptr` wherever possible (ROS 1 fast intra-process message-passing requires boost::shared_ptr).
Expand Down
6 changes: 3 additions & 3 deletions mujoco_ros/src/offscreen_rendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ void MujocoEnv::initializeRenderResources()
max_res_h = std::max(res_h, max_res_h);
max_res_w = std::max(res_w, max_res_w);

offscreen_.cams.emplace_back(
std::make_unique<rendering::OffscreenCamera>(cam_id, cam_name, res_w, res_h, stream_type, use_segid, pub_freq,
&it, *nh_.get(), model_.get(), data_.get(), this));
offscreen_.cams.emplace_back(std::make_unique<rendering::OffscreenCamera>(cam_id, cam_name, res_w, res_h,
stream_type, use_segid, pub_freq, &it,
*nh_, model_.get(), data_.get(), this));
}

if (model_->vis.global.offheight < max_res_h || model_->vis.global.offwidth < max_res_w) {
Expand Down
2 changes: 1 addition & 1 deletion mujoco_ros_mocap_plugin/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ add_dependencies(mocap_test
)

target_link_libraries(mocap_test
${catkin_LIBRARIES}
${PROJECT_NAME}
${catkin_LIBRARIES}
)

0 comments on commit 0818f52

Please sign in to comment.