From 4c4aba9d26dac0cdb9daba384323b65cd6a8a96f Mon Sep 17 00:00:00 2001 From: Arne Nordmann Date: Sun, 5 Jun 2022 11:11:16 +0200 Subject: [PATCH] Seperate CI for focal and jammy. Added humble distro Signed-off-by: Arne Nordmann --- .github/workflows/{ci.yaml => ci-focal.yaml} | 12 +++--- .github/workflows/ci-jammy.yaml | 41 ++++++++++++++++++++ 2 files changed, 47 insertions(+), 6 deletions(-) rename .github/workflows/{ci.yaml => ci-focal.yaml} (78%) create mode 100644 .github/workflows/ci-jammy.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci-focal.yaml similarity index 78% rename from .github/workflows/ci.yaml rename to .github/workflows/ci-focal.yaml index b7da1d9..fbdd337 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci-focal.yaml @@ -1,4 +1,4 @@ -name: "CI: foxy, galactic, rolling" +name: "CI: foxy, galactic on focal" on: push: @@ -16,15 +16,15 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04 ] - ros_distribution: [ foxy, galactic, rolling ] + ros_distribution: [ foxy, galactic ] steps: - - uses: actions/checkout@v2.3.4 - - uses: ros-tooling/setup-ros@v0.2 + - uses: actions/checkout@v3 + - uses: ros-tooling/setup-ros@v0.3 with: required-ros-distributions: ${{ matrix.ros_distribution }} - uses : ros-tooling/action-ros-ci@v0.2 with: - package-name: "launch_system_modes system_modes system_modes_examples system_modes_msgs test_launch_system_modes " + package-name: "launch_system_modes system_modes system_modes_examples system_modes_msgs test_launch_system_modes" target-ros2-distro: ${{ matrix.ros_distribution }} colcon-defaults: | { @@ -36,6 +36,6 @@ jobs: } } colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml - - uses: codecov/codecov-action@v1.5.0 + - uses: codecov/codecov-action@v3 with: file: ros_ws/lcov/total_coverage.info diff --git a/.github/workflows/ci-jammy.yaml b/.github/workflows/ci-jammy.yaml new file mode 100644 index 0000000..36b530f --- /dev/null +++ b/.github/workflows/ci-jammy.yaml @@ -0,0 +1,41 @@ +name: "CI: humble-rolling on jammy" + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + # Run once per day to detect broken dependencies. + - cron: '17 5 * * *' + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-22.04 ] + ros_distribution: [ foxy, galactic ] + steps: + - uses: actions/checkout@v3 + - uses: ros-tooling/setup-ros@v0.3 + with: + required-ros-distributions: ${{ matrix.ros_distribution }} + - uses : ros-tooling/action-ros-ci@v0.2 + with: + package-name: "launch_system_modes system_modes system_modes_examples system_modes_msgs test_launch_system_modes" + target-ros2-distro: ${{ matrix.ros_distribution }} + colcon-defaults: | + { + "build": { + "mixin": ["coverage-gcc", "coverage-pytest"] + }, + "test": { + "mixin": ["coverage-pytest"] + } + } + colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml + - uses: codecov/codecov-action@v3 + with: + file: ros_ws/lcov/total_coverage.info