Skip to content

Commit a41e9e7

Browse files
author
Murilo Marinho
committed
Organizing files to add gh deployment some other day
1 parent f37671a commit a41e9e7

4 files changed

Lines changed: 20 additions & 10 deletions

File tree

.devel/build_ros2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ for pkg_name in "${combined_pkg_array[@]}"; do
138138
# https://stackoverflow.com/questions/3306007/replace-a-string-in-shell-script-using-a-variable
139139
sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"*.deb
140140
${var//12345678/$replace}
141-
done
141+
done

.devel/release_ros2.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
# Copyright (c) Murilo M. Marinho (www.murilomarinho.info)
4+
5+
####################################################################
6+
# Release on github
7+
####################################################################
8+
9+
# Get arch to differentiate releases
10+
arch=$(uname -i)
11+
# Release on Github
12+
gh release create v"$VERSION" ros-"$rosv"-sas-*.deb -t v"$VERSION"_"$arch" --notes "Latest automated release for $arch" --repo git@github.com:SmartArmStack/smart_arm_stack_ROS2.git

.github/workflows/autobuilder.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# https://github.com/ros-tooling/setup-ros
2-
name: Debian Builder # On Linux, iterates on all ROS 1 and ROS 2 distributions.
1+
name: Debian Builder
32
on: [push,workflow_dispatch]
43
jobs:
5-
test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions.
4+
debian_builder:
65
runs-on: ${{ matrix.os }}
76
strategy:
87
matrix:
98
os: ['ubuntu-24.04', 'ubuntu-24.04-arm']
9+
permissions:
10+
contents: write # release changes require contents write
1011
steps:
1112
- name: Checkout repository
1213
uses: actions/checkout@v4
@@ -18,7 +19,4 @@ jobs:
1819
run: |
1920
cd .devel
2021
chmod +x build_container.sh && ./extract_debian_from_container.sh
21-
- uses: actions/upload-artifact@v4
22-
with:
23-
name: ${{ matrix.os }}_artifact
24-
path: .devel/upload/
22+

.github/workflows/setup_ros.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# https://github.com/ros-tooling/setup-ros
2-
name: colcon build test # On Linux, iterates on all ROS 1 and ROS 2 distributions.
2+
name: colcon build test
33
on: [push,workflow_dispatch]
44
jobs:
5-
test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions.
5+
colcon_build:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:

0 commit comments

Comments
 (0)