mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
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:
37
.github/workflows/ros2-build.yml
vendored
37
.github/workflows/ros2-build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user