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