Skip to content

Commit 8c02ef7

Browse files
committed
add release workflows
1 parent 25868fc commit 8c02ef7

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: ROS2 Publish Release Iron
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
push:
7+
tags:
8+
- '[0-9]+.[0-9]+.[0-9]+'
9+
10+
jobs:
11+
pre-commit:
12+
name: Format
13+
runs-on: 'ubuntu-22.04'
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
- name: Install system hooks
20+
run: sudo apt install -qq cppcheck
21+
- uses: pre-commit/[email protected]
22+
with:
23+
extra_args: --all-files --hook-stage manual
24+
unit-tests:
25+
name: Unit Tests
26+
uses: locusrobotics/locus_ci/.github/workflows/[email protected]
27+
with:
28+
ros_distro: 'iron'
29+
docker_image: 'ros:iron-ros-base'
30+
secrets:
31+
jf_url: ${{ secrets.JF_URL }}
32+
jf_user: ${{ secrets.JF_USER }}
33+
jf_token: ${{ secrets.JF_TOKEN }}
34+
release:
35+
name: Release
36+
needs: [unit-tests, pre-commit]
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
include:
41+
- runs-on: 'APG-2-Core-ARM'
42+
docker_image: 'arm64v8/ros:iron-ros-base'
43+
- runs-on: 'ubuntu-22.04'
44+
docker_image: 'ros:iron-ros-base'
45+
uses: locusrobotics/locus_ci/.github/workflows/[email protected]
46+
with:
47+
ros_distro: 'iron'
48+
docker_image: ${{ matrix.docker_image }}
49+
os: ${{ matrix.runs-on }}
50+
build: true
51+
version_tag: ${{ github.ref_name }}
52+
secrets:
53+
jf_url: ${{ secrets.JF_URL }}
54+
jf_user: ${{ secrets.JF_USER }}
55+
jf_token: ${{ secrets.JF_TOKEN }}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: ROS2 Publish Release Jazzy
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
push:
7+
tags:
8+
- '[0-9]+.[0-9]+.[0-9]+'
9+
10+
jobs:
11+
pre-commit:
12+
name: Format
13+
runs-on: 'ubuntu-24.04'
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
- name: Install system hooks
20+
run: sudo apt install -qq cppcheck
21+
- uses: pre-commit/[email protected]
22+
with:
23+
extra_args: --all-files --hook-stage manual
24+
unit-tests:
25+
name: Unit Tests
26+
uses: locusrobotics/locus_ci/.github/workflows/[email protected]
27+
with:
28+
ros_distro: 'jazzy'
29+
docker_image: 'ros:jazzy-ros-base'
30+
secrets:
31+
jf_url: ${{ secrets.JF_URL }}
32+
jf_user: ${{ secrets.JF_USER }}
33+
jf_token: ${{ secrets.JF_TOKEN }}
34+
release:
35+
name: Release
36+
needs: [unit-tests, pre-commit]
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
include:
41+
- runs-on: 'APG-2-Core-ARM'
42+
docker_image: 'arm64v8/ros:jazzy-ros-base'
43+
- runs-on: 'ubuntu-22.04'
44+
docker_image: 'ros:jazzy-ros-base'
45+
uses: locusrobotics/locus_ci/.github/workflows/[email protected]
46+
with:
47+
ros_distro: 'jazzy'
48+
docker_image: ${{ matrix.docker_image }}
49+
os: ${{ matrix.runs-on }}
50+
build: true
51+
version_tag: ${{ github.ref_name }}
52+
secrets:
53+
jf_url: ${{ secrets.JF_URL }}
54+
jf_user: ${{ secrets.JF_USER }}
55+
jf_token: ${{ secrets.JF_TOKEN }}

0 commit comments

Comments
 (0)