Skip to content

Commit

Permalink
ci: add matrix build for Humble (tier4#336)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored May 23, 2022
1 parent 9c3047e commit a08e1bf
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 6 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ on:
jobs:
build-self-hosted:
runs-on: [self-hosted, linux, ARM64]
container: ubuntu:20.04
container: ubuntu:${{ matrix.ubuntu-version }}
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- { rosdistro: galactic, branch: main, ubuntu-version: "20.04" }
- { rosdistro: humble, branch: humble, ubuntu-version: "22.04" }
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}

- name: Run setup script
run: |
Expand All @@ -26,9 +37,9 @@ jobs:
run: |
sudo apt-get -y update
rosdep update
DEBIAN_FRONTEND=noninteractive rosdep install -y --from-paths src --ignore-src --rosdistro galactic
DEBIAN_FRONTEND=noninteractive rosdep install -y --from-paths src --ignore-src --rosdistro ${{ matrix.rosdistro }}
- name: Build
run: |
. /opt/ros/galactic/setup.sh
. /opt/ros/${{ matrix.rosdistro }}/setup.sh
colcon build --event-handlers console_cohesion+ --cmake-args -DCMAKE_BUILD_TYPE=Release
17 changes: 14 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:20.04
container: ubuntu:${{ matrix.ubuntu-version }}
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- { rosdistro: galactic, branch: main, ubuntu-version: "20.04" }
- { rosdistro: humble, branch: humble, ubuntu-version: "22.04" }
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}

- name: Run setup script
run: |
Expand All @@ -31,9 +42,9 @@ jobs:
run: |
sudo apt-get -y update
rosdep update
DEBIAN_FRONTEND=noninteractive rosdep install -y --from-paths src --ignore-src --rosdistro galactic
DEBIAN_FRONTEND=noninteractive rosdep install -y --from-paths src --ignore-src --rosdistro ${{ matrix.rosdistro }}
- name: Build
run: |
. /opt/ros/galactic/setup.sh
. /opt/ros/${{ matrix.rosdistro }}/setup.sh
colcon build --event-handlers console_cohesion+ --cmake-args -DCMAKE_BUILD_TYPE=Release
11 changes: 11 additions & 0 deletions .github/workflows/docker-build-and-push-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ on:
jobs:
docker-build-and-push-self-hosted:
runs-on: [self-hosted, linux, ARM64]
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- { rosdistro: galactic, branch: main }
- { rosdistro: humble, branch: humble }
steps:
# https://github.com/actions/checkout/issues/211
- name: Change permission of workspace
Expand All @@ -19,6 +28,8 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}

- name: Free disk space
uses: ./.github/actions/free-disk-space
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ on:
jobs:
docker-build-and-push:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rosdistro:
- galactic
- humble
include:
- { rosdistro: galactic, branch: main }
- { rosdistro: humble, branch: humble }
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}

- name: Free disk space
uses: ./.github/actions/free-disk-space
Expand Down

0 comments on commit a08e1bf

Please sign in to comment.