Skip to content

Commit

Permalink
ci: support multi distro CI (#967)
Browse files Browse the repository at this point in the history
* ci: support multi distro CI

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* add build_depends.humble.repos

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* update build_depends.humble.repos

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* update other workflows

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake committed May 27, 2022
1 parent 4e52f8c commit d1a158c
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 20 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/build-and-test-differential-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ jobs:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: [self-hosted, linux, ARM64]
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- rosdistro: galactic
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
build-depends-repos: build_depends.repos
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
build-depends-repos: build_depends.humble.repos
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -36,14 +49,14 @@ jobs:
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}
23 changes: 18 additions & 5 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ on:
jobs:
build-and-test-differential:
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- rosdistro: galactic
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
build-depends-repos: build_depends.repos
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
build-depends-repos: build_depends.humble.repos
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
Expand All @@ -27,18 +40,18 @@ jobs:
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
id: test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/build-and-test-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ on:
jobs:
build-and-test-self-hosted:
runs-on: [self-hosted, linux, ARM64]
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- rosdistro: galactic
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
build-depends-repos: build_depends.repos
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
build-depends-repos: build_depends.humble.repos
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -24,14 +37,14 @@ jobs:
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}
23 changes: 18 additions & 5 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@ jobs:
build-and-test:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- rosdistro: galactic
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest-cuda
build-depends-repos: build_depends.repos
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
build-depends-repos: build_depends.humble.repos
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -26,18 +39,18 @@ jobs:
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Test
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
id: test
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
with:
rosdistro: galactic
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: build_depends.repos
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
Expand Down
35 changes: 35 additions & 0 deletions build_depends.humble.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
repositories:
# core
core/autoware_msgs:
type: git
url: https://github.com/tier4/autoware_auto_msgs.git # TODO(Tier IV): Move to autowarefoundation/autoware_msgs
version: tier4/main
core/common:
type: git
url: https://github.com/autowarefoundation/autoware_common.git
version: main
core/autoware:
type: git
url: https://github.com/autowarefoundation/autoware.core.git
version: main
# universe
universe/tier4_autoware_msgs:
type: git
url: https://github.com/tier4/AutowareArchitectureProposal_msgs.git # TODO(Tier IV): Rename to tier4/tier4_autoware_msgs
version: tier4/universe
universe/vendor/grid_map:
type: git
url: https://github.com/tier4/grid_map.git
version: prepare/humble
universe/vendor/navigation2:
type: git
url: https://github.com/tier4/navigation2.git
version: prepare/humble
universe/vendor/mussp:
type: git
url: https://github.com/tier4/muSSP.git
version: tier4/main
universe/vendor/ndt_omp:
type: git
url: https://github.com/tier4/ndt_omp.git
version: tier4/main

0 comments on commit d1a158c

Please sign in to comment.