Refactor GitHub Actions workflow for multi-platform builds

Updated the GitHub Actions workflow to include a build job for macOS and Windows, and added a separate Docker build job.
This commit is contained in:
Ackimixs
2025-12-08 23:12:35 +01:00
committed by GitHub
parent fb20d46c02
commit c5fc745baf

View File

@@ -5,25 +5,26 @@ on:
branches: [ main ]
jobs:
build_and_test:
runs-on: ubuntu-22.04
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ROS2 (Jazzy)
- name: Setup ROS
uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: "jazzy"
use-ros2-testing: "false"
install-connext: "false"
required-ros-distributions: jazzy
- run: vcs --help
- name: Build workspace
run: |
colcon build --event-handlers console_direct+
- name: Run tests
run: |
colcon test --event-handlers console_direct+
colcon test-result --verbose
build_docker:
runs-on: ubuntu-latest
container:
image: ubuntu:noble
steps:
- name: Setup ROS
uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy
- run: vcs --help