Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jazzy support for Github actions #966

Merged
merged 1 commit into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/workflows/identify-ros-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ on:
value: ${{ jobs.identify-ros-distro.outputs.linuxos }}
env:
ROLLING_VAR: ${{ contains(github.ref, 'develop') }}
JAZZY_VAR: ${{ contains(github.ref, 'jazzy') }}
IRON_VAR: ${{ contains(github.ref, 'iron') }}
HUMBLE_VAR: ${{ contains(github.ref, 'humble') }}
GALACTIC_VAR: ${{ contains(github.ref, 'galactic') }}
FOXY_VAR: ${{ contains(github.ref, 'foxy') }}

jobs:
identify-ros-distro:
Expand All @@ -28,21 +27,18 @@ jobs:
run: |
if ${ROLLING_VAR} == true; then
echo "::set-output name=distro::rolling"
echo "::set-output name=linuxos::ubuntu-22.04"
echo "::set-output name=linuxos::ubuntu-24.04"
elif ${JAZZY_VAR} == true; then
echo "::set-output name=distro::jazzy"
echo "::set-output name=linuxos::ubuntu-24.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"
elif ${GALACTIC_VAR} == true; then
echo "::set-output name=distro::galactic"
echo "::set-output name=linuxos::ubuntu-20.04"
elif ${FOXY_VAR} == true; then
echo "::set-output name=distro::foxy"
echo "::set-output name=linuxos::ubuntu-20.04"
else
echo "Unable to map branch name to ROS distro, using ROLLING as default"
echo "::set-output name=distro::rolling"
echo "::set-output name=linuxos::ubuntu-22.04"
echo "::set-output name=linuxos::ubuntu-24.04"
fi
7 changes: 4 additions & 3 deletions .github/workflows/linux-build-and-test-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@ jobs:
matrix:
node-version: [18.X, 20.X]
ros_distribution:
- jazzy
- iron
- humble
- rolling

steps:
- name: Setup ROS2
uses: ros-tooling/setup-ros@v0.7
uses: ros-tooling/setup-ros@0.7.6
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
- uses: actions/checkout@v4

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

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/linux-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ on:
push:
branches:
- develop
- jazzy
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
pull_request:
branches:
- develop
- jazzy
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
workflow_dispatch:

jobs:
Expand All @@ -31,12 +29,12 @@ jobs:
node-version: [18.X, 20.X]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup ROS2
uses: ros-tooling/setup-ros@v0.7
uses: ros-tooling/setup-ros@0.7.6
with:
required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/windows-build-and-test-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ jobs:
matrix:
node-version: [18.16.0, 20.X]
ros_distribution:
- jazzy
- iron
- humble
- rolling
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup ROS2
uses: ros-tooling/setup-ros@v0.7
uses: ros-tooling/setup-ros@0.7.6
with:
required-ros-distributions: ${{ matrix.ros_distribution }}

Expand All @@ -36,7 +37,7 @@ jobs:
- name: Prebuild - Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build rclnodejs
shell: cmd
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/windows-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ on:
push:
branches:
- develop
- jazzy
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
pull_request:
branches:
- develop
- jazzy
- iron-irwini
- humble-hawksbill
- galactic-geochelone
- foxy-fitzroy
workflow_dispatch:

jobs:
Expand All @@ -33,12 +31,12 @@ jobs:
node-version: [18.16.0, 20.X]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup ROS2
uses: ros-tooling/setup-ros@v0.7
uses: ros-tooling/setup-ros@0.7.6
with:
required-ros-distributions: ${{ needs.identify-ros-distro.outputs.distro }}

Expand All @@ -52,7 +50,7 @@ jobs:
- name: Prebuild - Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build rclnodejs
shell: cmd
Expand Down
Loading