Skip to content

Commit

Permalink
Merge pull request #22 from nilsbore/test_release
Browse files Browse the repository at this point in the history
Release building
  • Loading branch information
nilsbore authored Dec 27, 2020
2 parents 7294f88 + 65d3412 commit 754c856
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release-deb

on:
push:
tags:
- '*'

jobs:
release_build:
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-melodic-ros-base-latest
steps:
- uses: actions/checkout@v2
with:
path: '.'
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install deps
run: |
ls
rosdep update
rosdep install --from-path . --ignore-src --rosdistro melodic -y
sudo apt install -y python-bloom fakeroot dpkg-dev debhelper zip
- name: Build package
run: |
ls
bloom-release --version
bloom-generate rosdebian --os-name ubuntu --os-version bionic --ros-distro melodic
fakeroot debian/rules binary
mv ../ros-melodic-*.deb .
zip bloom-release-deb.zip ros-melodic-*.deb
ls
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./bloom-release-deb.zip
asset_name: bloom-release-deb.zip
tag: ${{ github.ref }}
overwrite: true
body: "Debian release generated using bloom"
9 changes: 3 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,9 @@ target_link_libraries(bridge_node
# )

## Mark executables and/or libraries for installation
# install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
install(TARGETS bridge_node
install(TARGETS bridge_node md5 ros_to_imc_heartbeat imc_to_ros_heartbeat ros_to_imc_gpsfix ros_to_imc_goto imc_to_ros_goto imc_factory udp_link imc_handle imc_to_ros_abort imc_to_ros_plandb ros_to_imc_plandb ros_to_imc_gpsnavdata imc_to_ros_plancontrol ros_to_imc_plancontrolstate ros_to_imc_estimatedstate ros_to_imc_vehiclestate ros_to_imc_remotestate ros_to_imc_sonardata ros_to_imc_DesiredHeading ros_to_imc_DesiredHeadingRate ros_to_imc_DesiredPitch ros_to_imc_DesiredRoll ros_to_imc_DesiredSpeed ros_to_imc_DesiredZ
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Expand Down

0 comments on commit 754c856

Please sign in to comment.