Skip to content
Merged
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: 13 additions & 3 deletions .github/workflows/linux-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,27 @@ jobs:

build:
needs: identify-ros-distro
runs-on: ubuntu-latest
runs-on: ubuntu-${{ matrix.ubuntu-version }}
container:
image: ${{ needs.identify-ros-distro.outputs.linuxos }}
strategy:
fail-fast: false
matrix:
node-version: [20.X, 22.X, 24.X]
architecture: [x64]
ubuntu-version: [latest]
# Add arm64 support for rolling.
include:
- architecture: arm64
node-version: 22.X
ubuntu-version: 24.04-arm
exclude: ${{ !contains(github.ref, 'develop') }}
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a comment explaining why arm64 jobs are excluded when the branch does not contain 'develop', to improve clarity and maintainability.

Copilot uses AI. Check for mistakes.
steps:
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js ${{ matrix.node-version }} on ${{ matrix.architecture }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ matrix.architecture }}

- name: Setup ROS2
uses: ros-tooling/[email protected]
Expand All @@ -53,6 +62,7 @@ jobs:

- name: Build and test rclnodejs
run: |
uname -a
source /opt/ros/${{ needs.identify-ros-distro.outputs.distro }}/setup.bash
npm i
npm run lint
Expand All @@ -63,7 +73,7 @@ jobs:
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.node-version}}
flag-name: run-${{ matrix.node-version }}-${{ matrix.architecture }}
parallel: true

finish:
Expand Down
Loading