Skip to content

Commit

Permalink
ci: update build-and-test and -differential jobs (#6471)
Browse files Browse the repository at this point in the history
Signed-off-by: oguzkaganozt <[email protected]>
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
oguzkaganozt authored Mar 6, 2024
1 parent 81d5374 commit 5206580
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: build-and-test-self-hosted
name: build-and-test-arm64

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
build-and-test-self-hosted:
build-and-test-arm64:
runs-on: [self-hosted, linux, ARM64]
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
Expand All @@ -19,12 +19,15 @@ jobs:
- -cuda
include:
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Show disk space before the tasks
run: df -h

- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

Expand All @@ -47,3 +50,6 @@ jobs:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Show disk space after the tasks
run: df -h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-and-test-differential-self-hosted
name: build-and-test-differential-arm64

on:
pull_request:
Expand All @@ -12,9 +12,9 @@ jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
with:
label: ARM64
label: type:arm64

build-and-test-differential-self-hosted:
build-and-test-differential-arm64:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: [self-hosted, linux, ARM64]
Expand All @@ -29,14 +29,17 @@ jobs:
- -cuda
include:
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Show disk space before the tasks
run: df -h

- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

Expand All @@ -59,3 +62,6 @@ jobs:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}

- name: Show disk space after the tasks
run: df -h
9 changes: 5 additions & 4 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,27 @@ jobs:
build-and-test-differential:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: [self-hosted, linux, X64]
runs-on: ubuntu-latest
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
fail-fast: false
matrix:
rosdistro:
- humble
container-suffix:
- ""
- -cuda
include:
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check disk space before build
- name: Show disk space before the tasks
run: df -h

- name: Remove exec_depend
Expand Down Expand Up @@ -71,5 +72,5 @@ jobs:
verbose: true
flags: differential

- name: Check disk space after build
- name: Show disk space after the tasks
run: df -h
10 changes: 8 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build-and-test:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
runs-on: [self-hosted, linux, X64]
runs-on: ubuntu-latest
container: ${{ matrix.container }}${{ matrix.container-suffix }}
strategy:
fail-fast: false
Expand All @@ -21,12 +21,15 @@ jobs:
- -cuda
include:
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Show disk space before the tasks
run: df -h

- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

Expand Down Expand Up @@ -59,3 +62,6 @@ jobs:
fail_ci_if_error: false
verbose: true
flags: total

- name: Show disk space after the tasks
run: df -h

0 comments on commit 5206580

Please sign in to comment.