Skip to content

Commit bb7ed9c

Browse files
committed
[arm64] Correct workflow
1 parent 79ac1b0 commit bb7ed9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/linux-build-and-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: rclnodejs - Linux Build and Test
32

43
on:
@@ -27,6 +26,8 @@ jobs:
2726
build:
2827
needs: identify-ros-distro
2928
runs-on: ubuntu-${{ matrix.ubuntu-version }}
29+
# Run x64 jobs on all branches, but arm64 jobs only on the develop branch
30+
if: ${{ matrix.architecture == 'x64' || contains(github.ref, 'develop') }}
3031
container:
3132
image: ${{ needs.identify-ros-distro.outputs.linuxos }}
3233
strategy:
@@ -35,12 +36,10 @@ jobs:
3536
node-version: [20.X, 22.X, 24.X]
3637
architecture: [x64]
3738
ubuntu-version: [latest]
38-
# Add arm64 support for rolling.
3939
include:
4040
- architecture: arm64
4141
node-version: 22.X
4242
ubuntu-version: 24.04-arm
43-
exclude: ${{ !contains(github.ref, 'develop') }}
4443
steps:
4544
- name: Setup Node.js ${{ matrix.node-version }} on ${{ matrix.architecture }}
4645
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)