File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 1-
21name : rclnodejs - Linux Build and Test
32
43on :
2423 identify-ros-distro :
2524 uses : ./.github/workflows/identify-ros-distro.yml
2625
26+ matrix-prep :
27+ runs-on : ubuntu-latest
28+ outputs :
29+ arm64-matrix : ${{ steps.set-matrix.outputs.arm64-matrix }}
30+ steps :
31+ - id : set-matrix
32+ run : |
33+ if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
34+ echo "arm64-matrix=[{\"architecture\":\"arm64\",\"node-version\":\"22.X\",\"ubuntu-version\":\"24.04-arm\"}]" >> $GITHUB_OUTPUT
35+ else
36+ echo "arm64-matrix=[]" >> $GITHUB_OUTPUT
37+ fi
38+
2739 build :
28- needs : identify-ros-distro
40+ needs : [ identify-ros-distro, matrix-prep]
2941 runs-on : ubuntu-${{ matrix.ubuntu-version }}
3042 container :
3143 image : ${{ needs.identify-ros-distro.outputs.linuxos }}
3547 node-version : [20.X, 22.X, 24.X]
3648 architecture : [x64]
3749 ubuntu-version : [latest]
38- # Add arm64 support for rolling.
39- include :
40- - architecture : arm64
41- node-version : 22.X
42- ubuntu-version : 24.04-arm
43- exclude : ${{ !contains(github.ref, 'develop') }}
50+ # Include arm64 configuration from matrix-prep job
51+ include : ${{ fromJSON(needs.matrix-prep.outputs.arm64-matrix) }}
4452 steps :
4553 - name : Setup Node.js ${{ matrix.node-version }} on ${{ matrix.architecture }}
4654 uses : actions/setup-node@v4
8492 uses : coverallsapp/github-action@v2
8593 with :
8694 github-token : ${{ secrets.GITHUB_TOKEN }}
87- parallel-finished : true
95+ parallel-finished : true
You can’t perform that action at this time.
0 commit comments