Skip to content

Commit 754c856

Browse files
authored
Merge pull request #22 from nilsbore/test_release
Release building
2 parents 7294f88 + 65d3412 commit 754c856

File tree

2 files changed

+45
-6
lines changed

2 files changed

+45
-6
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: release-deb
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release_build:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-melodic-ros-base-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
path: '.'
17+
- name: Set env
18+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
19+
- name: Install deps
20+
run: |
21+
ls
22+
rosdep update
23+
rosdep install --from-path . --ignore-src --rosdistro melodic -y
24+
sudo apt install -y python-bloom fakeroot dpkg-dev debhelper zip
25+
- name: Build package
26+
run: |
27+
ls
28+
bloom-release --version
29+
bloom-generate rosdebian --os-name ubuntu --os-version bionic --ros-distro melodic
30+
fakeroot debian/rules binary
31+
mv ../ros-melodic-*.deb .
32+
zip bloom-release-deb.zip ros-melodic-*.deb
33+
ls
34+
- name: Upload binaries to release
35+
uses: svenstaro/upload-release-action@v2
36+
with:
37+
repo_token: ${{ secrets.GITHUB_TOKEN }}
38+
file: ./bloom-release-deb.zip
39+
asset_name: bloom-release-deb.zip
40+
tag: ${{ github.ref }}
41+
overwrite: true
42+
body: "Debian release generated using bloom"

CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,9 @@ target_link_libraries(bridge_node
284284
# )
285285

286286
## Mark executables and/or libraries for installation
287-
# install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node
288-
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
289-
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
290-
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
291-
# )
292-
install(TARGETS bridge_node
287+
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
288+
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
289+
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
293290
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
294291
)
295292

0 commit comments

Comments
 (0)