-
Notifications
You must be signed in to change notification settings - Fork 72
53 lines (44 loc) · 1.16 KB
/
linux-build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: rclnodejs - Linux Build and Test
on:
push:
branches:
- develop
- jazzy
- humble-hawksbill
pull_request:
branches:
- develop
- jazzy
- humble-hawksbill
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
identify-ros-distro:
uses: ./.github/workflows/identify-ros-distro.yml
build:
needs: identify-ros-distro
runs-on: ${{ needs.identify-ros-distro.outputs.linuxos }}
container:
image: osrf/ros:${{ needs.identify-ros-distro.outputs.distro }}-desktop
strategy:
fail-fast: false
matrix:
node-version: [20.X, 22.X]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup ROS2
uses: ros-tooling/[email protected]
- name: Install test-msgs on Linux
run: |
sudo apt install ros-${{ needs.identify-ros-distro.outputs.distro }}-test-msgs
- uses: actions/checkout@v4
- name: Build and test rclnodejs
run: |
source /opt/ros/${{ needs.identify-ros-distro.outputs.distro }}/setup.bash
npm i
npm test