mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
Update ros2-build.yml
This commit is contained in:
40
.github/workflows/ros2-build.yml
vendored
40
.github/workflows/ros2-build.yml
vendored
@@ -5,41 +5,13 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_test_ros2:
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [macOS-latest, windows-latest]
|
|
||||||
steps:
|
|
||||||
- name: Setup ROS
|
|
||||||
uses: ros-tooling/setup-ros@v0.7
|
|
||||||
with:
|
|
||||||
required-ros-distributions: jazzy
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: colcon build --event-handlers console_direct+
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
colcon test --event-handlers console_direct+
|
|
||||||
colcon test-result --verbose
|
|
||||||
|
|
||||||
|
|
||||||
build_docker:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ubuntu:noble
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup ROS
|
- uses: ros-tooling/setup-ros@v0.7
|
||||||
uses: ros-tooling/setup-ros@v0.7
|
|
||||||
with:
|
with:
|
||||||
required-ros-distributions: jazzy
|
required-ros-distributions: jazzy
|
||||||
|
- uses: ros-tooling/action-ros-ci@v0.4
|
||||||
- name: Build
|
with:
|
||||||
run: colcon build --event-handlers console_direct+
|
package-name: modelec_utils
|
||||||
|
target-ros2-distro: jazzy
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
colcon test --event-handlers console_direct+
|
|
||||||
colcon test-result --verbose
|
|
||||||
|
|||||||
Reference in New Issue
Block a user