Skip to content

Commit 501910c

Browse files
committed
updated github action
1 parent 688270e commit 501910c

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
name: colcon build
2-
32
on:
3+
push:
4+
branches: [ docker ]
45
pull_request:
5-
branches: [ jazzy ] # Adjust this if your default branch is different
6-
6+
branches: [ jazzy ] # Adjust this if your default branch is different
77
jobs:
88
build:
9-
runs-on: ubuntu-24.04
9+
runs-on: ubuntu-24.04
10+
strategy:
11+
matrix:
12+
base_image: [hardware, gazebo, gazebo-cuda]
1013
steps:
11-
- uses: actions/checkout@v4
12-
- name: Install and Build ROS2 environment
13-
run: |
14-
export UBUNTU_VER=24.04
15-
export USE_ROS_DISTRO=jazzy
16-
export RMW=cyclonedds
17-
cd docker && docker compose build
18-
shell: bash
19-
- name: Nvidia - Install and Build ROS2 environment
20-
run: |
21-
export UBUNTU_VER=24.04
22-
export USE_ROS_DISTRO=jazzy
23-
export RMW=cyclonedds
24-
export RUNTIME=nvidia
25-
cd docker && docker compose build
26-
shell: bash
14+
- uses: actions/checkout@v4
15+
16+
- name: Install and Build ROS2 environment - ${{ matrix.base_image }}
17+
run: |
18+
export ROS_DISTRO=jazzy
19+
export BASE_IMAGE=${{ matrix.base_image }}
20+
cd docker && docker compose build
21+
shell: bash

0 commit comments

Comments
 (0)