Skip to content

Add pixi workflow and dependency file #2338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/rolling-semi-binary-build-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Rolling Windows Semi-Binary Build
# author: Christoph Fröhlich <[email protected]>
# description: 'Build & test all dependencies from semi-binary packages.'

on:
workflow_dispatch:
pull_request:
branches:
- master
paths:
- '**.hpp'
- '**.h'
- '**.cpp'
- '**.py'
- '.github/workflows/rolling-semi-binary-build-win.yml'
- '**/package.xml'
- '**/CMakeLists.txt'
- 'ros2_control.rolling.repos'
- 'ros2_control.windows.rolling.repos'
push:
branches:
- master
paths:
- '**.hpp'
- '**.h'
- '**.cpp'
- '**.py'
- '.github/workflows/rolling-semi-binary-build-win.yml'
- '**/package.xml'
- '**/CMakeLists.txt'
- 'ros2_control.rolling.repos'
- 'ros2_control.windows.rolling.repos'

concurrency:
# cancel previous runs of the same workflow, except for pushes on master branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, '/refs/heads') }}

jobs:
binary-windows:
# if: |
# (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/check-windows')) ||
# (github.event_name == 'pull_request' && contains(github.event.label.name, 'check-windows')) ||
# (github.event_name == 'workflow_dispatch')
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-ros-tooling-win-build.yml@master
with:
ros_distro: rolling
pixi_dependencies: typeguard jinja2 boost compilers
windows_dependencies: ros2_control.windows.rolling.repos
ninja_packages: rsl
9 changes: 9 additions & 0 deletions hardware_interface/include/hardware_interface/handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

namespace
{
#ifndef _WIN32
template <typename T>
std::string get_type_name()
{
Expand All @@ -44,6 +45,14 @@ std::string get_type_name()
abi::__cxa_demangle(typeid(T).name(), nullptr, nullptr, &status), std::free};
return (status == 0) ? res.get() : typeid(T).name();
}
#else
// not supported on Windows, use typeid directly
template <typename T>
std::string get_type_name()
{
return typeid(T).name();
}
#endif
} // namespace

namespace hardware_interface
Expand Down
29 changes: 29 additions & 0 deletions ros2_control.windows.rolling.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repositories:
filters:
type: git
url: https://github.com/ros/filters.git
version: ros2
cpp_polyfills:
type: git
url: https://github.com/PickNikRobotics/cpp_polyfills.git
version: main
rsl:
type: git
url: https://github.com/PickNikRobotics/RSL.git
version: main
generate_parameter_library:
type: git
url: https://github.com/PickNikRobotics/generate_parameter_library.git
version: main
pal_statistics:
type: git
url: https://github.com/pal-robotics/pal_statistics.git
version: humble-devel
backward_ros:
type: git
url: https://github.com/pal-robotics//backward_ros.git
version: foxy-devel
diagnostics:
type: git
url: https://github.com/ros/diagnostics
version: ros2
Loading