Skip to content
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
44 changes: 44 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,49 @@ jobs:
--verbose \
./python
- name: "Python: Test"
env:
# libopenarm_can.so is installed into a non-standard location.
LD_LIBRARY_PATH: ${{ github.workspace }}/install/lib
run: |
python3 -c "import openarm_can"

ros:
name: ROS ${{ matrix.distro }}
runs-on: ubuntu-latest
timeout-minutes: 10
container: ros:${{ matrix.distro }}-ros-base
strategy:
fail-fast: false
matrix:
distro:
- humble
- jazzy
- rolling
steps:
- uses: actions/checkout@v7
with:
path: src/openarm_can
submodules: recursive
- name: Install dependencies
run: |
apt update
rosdep update --rosdistro ${{ matrix.distro }}
rosdep install \
--default-yes \
--from-paths src \
--ignore-src \
--rosdistro ${{ matrix.distro }}
- name: Build Debian package
working-directory: src/openarm_can
run: |
apt install -y -V \
debhelper \
dpkg-dev \
fakeroot \
python3-bloom
bloom-generate rosdebian --ros-distro ${{ matrix.distro }}
fakeroot debian/rules binary
- uses: actions/upload-artifact@v7
with:
name: ros-${{ matrix.distro }}-debian-packages
path: src/*.deb
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ include(CTest)

include(GNUInstallDirs)

option(BUILD_SHARED_LIBS "Build shared libraries" ON)

# Create the main library
add_library(
openarm_can
Expand Down
6 changes: 4 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ limitations under the License. -->
<name>openarm_can</name>
<version>1.4.0</version>
<description>Low-level SocketCAN library and tools for OpenArm manipulators.</description>
<maintainer email="openarm_dev@enactic.ai">Enactic, Inc.</maintainer>
<maintainer email="opensource@enactic.ai">Enactic, Inc.</maintainer>
<license>Apache-2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>cmake</buildtool_depend>

<build_depend>cli11</build_depend>

<export>
<build_type>cmake</build_type>
Expand Down
1 change: 0 additions & 1 deletion packages/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
override_dh_auto_configure:
dh_auto_configure \
-- \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
dh_auto_configure \
--buildsystem=pybuild \
Expand Down
Loading