Skip to content

Commit f1a6753

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 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: ${{ !contains(matrix.job-type, 'arm64') || contains(github.ref, 'develop') }}
3031
container:
3132
image: ${{ needs.identify-ros-distro.outputs.linuxos }}
3233
strategy:
@@ -35,12 +36,12 @@ jobs:
3536
node-version: [20.X, 22.X, 24.X]
3637
architecture: [x64]
3738
ubuntu-version: [latest]
38-
# Add arm64 support for rolling.
39+
job-type: ['x64-job']
3940
include:
4041
- architecture: arm64
4142
node-version: 22.X
4243
ubuntu-version: 24.04-arm
43-
exclude: ${{ !contains(github.ref, 'develop') }}
44+
job-type: 'arm64-job'
4445
steps:
4546
- name: Setup Node.js ${{ matrix.node-version }} on ${{ matrix.architecture }}
4647
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)