Skip to content

Commit

Permalink
Add support of iron relase into Actions (#923)
Browse files Browse the repository at this point in the history
* Add support of iron relase into Actions

Fix: #922
  • Loading branch information
minggangw authored Jul 14, 2023
1 parent 17a0a7f commit 7081170
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 39 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/identify-ros-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
value: ${{ jobs.identify-ros-distro.outputs.linuxos }}
env:
ROLLING_VAR: ${{ contains(github.ref, 'develop') }}
IRON_VAR: ${{ contains(github.ref, 'iron') }}
HUMBLE_VAR: ${{ contains(github.ref, 'humble') }}
GALACTIC_VAR: ${{ contains(github.ref, 'galactic') }}
FOXY_VAR: ${{ contains(github.ref, 'foxy') }}
Expand All @@ -26,9 +27,11 @@ jobs:
id: identify
run: |
if ${ROLLING_VAR} == true; then
# echo "::set-output name=distro::rolling"
echo "::set-output name=distro::rolling"
echo "::set-output name=linuxos::ubuntu-22.04"
elif ${IRON_VAR} == true; then
echo "::set-output name=distro::iron"
echo "::set-output name=linuxos::ubuntu-22.04"
elif ${HUMBLE_VAR} == true; then
echo "::set-output name=distro::humble"
echo "::set-output name=linuxos::ubuntu-22.04"
Expand Down
36 changes: 3 additions & 33 deletions .github/workflows/linux-build-and-test-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
workflow_dispatch:

jobs:
build-humble-and-rolling: # humble and rolling distros
build-humble-and-rolling: # iron, humble and rolling distros
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
node-version: [14.X, 16.X, 18.X, 19.X]
node-version: [16.X, 18.X, 20.X]
ros_distribution:
- iron
- humble
- rolling

Expand All @@ -35,34 +36,3 @@ jobs:
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
npm i
npm test
build-foxy: # foxy distros
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node-version: [14.X, 16.11.X, 18.X, 19.X]
ros_distribution:
- foxy

steps:
- name: Setup ROS2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distribution }}

- name: Install test-msgs on Linux
run: |
sudo apt install ros-${{ matrix.ros_distribution }}-test-msgs
- uses: actions/checkout@v3

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build and test rclnodejs
run: |
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
npm i
npm test
4 changes: 3 additions & 1 deletion .github/workflows/linux-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
push:
branches:
- develop
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
pull_request:
branches:
- develop
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
Expand All @@ -26,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.X, 16.X, 18.X, 19.X]
node-version: [16.X, 18.X, 20.X]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows-build-and-test-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.21.2, 16.19.0, 18.14.1, 19.X]
node-version: [16.20.0, 18.16.0, 20.X]
ros_distribution:
- foxy
- iron
- humble
- rolling
steps:
Expand Down Expand Up @@ -51,4 +51,4 @@ jobs:
run: |
call "c:\dev\${{ matrix.ros_distribution }}\ros2-windows\setup.bat"
cmd /c "if ${{ matrix.ros_distribution }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)"
cmd /c "if NOT ${{ matrix.ros_distribution }}==foxy (npm test)"
cmd /c "if NOT ${{ matrix.ros_distribution }}==foxy (npm test)"
4 changes: 3 additions & 1 deletion .github/workflows/windows-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
push:
branches:
- develop
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
pull_request:
branches:
- develop
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
Expand All @@ -28,7 +30,7 @@ jobs:
matrix:
# Explicit node versions are used to workaround an error
# where node-gyp fails due to some silly cacheing
node-version: [14.21.2, 16.19.0, 18.14.1, 19.X]
node-version: [16.20.0, 18.16.0, 20.X]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down

0 comments on commit 7081170

Please sign in to comment.