Skip to content

Commit 5206580

Browse files
authored
ci: update build-and-test and -differential jobs (#6471)
Signed-off-by: oguzkaganozt <oguzkaganozt@gmail.com> Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent 81d5374 commit 5206580

4 files changed

+32
-13
lines changed

.github/workflows/build-and-test-self-hosted.yaml .github/workflows/build-and-test-arm64.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: build-and-test-self-hosted
1+
name: build-and-test-arm64
22

33
on:
44
schedule:
55
- cron: 0 0 * * *
66
workflow_dispatch:
77

88
jobs:
9-
build-and-test-self-hosted:
9+
build-and-test-arm64:
1010
runs-on: [self-hosted, linux, ARM64]
1111
container: ${{ matrix.container }}${{ matrix.container-suffix }}
1212
strategy:
@@ -19,12 +19,15 @@ jobs:
1919
- -cuda
2020
include:
2121
- rosdistro: humble
22-
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
22+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
2323
build-depends-repos: build_depends.repos
2424
steps:
2525
- name: Check out repository
2626
uses: actions/checkout@v3
2727

28+
- name: Show disk space before the tasks
29+
run: df -h
30+
2831
- name: Remove exec_depend
2932
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
3033

@@ -47,3 +50,6 @@ jobs:
4750
rosdistro: ${{ matrix.rosdistro }}
4851
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
4952
build-depends-repos: ${{ matrix.build-depends-repos }}
53+
54+
- name: Show disk space after the tasks
55+
run: df -h

.github/workflows/build-and-test-differential-self-hosted.yaml .github/workflows/build-and-test-differential-arm64.yaml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build-and-test-differential-self-hosted
1+
name: build-and-test-differential-arm64
22

33
on:
44
pull_request:
@@ -12,9 +12,9 @@ jobs:
1212
prevent-no-label-execution:
1313
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
1414
with:
15-
label: ARM64
15+
label: type:arm64
1616

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

40+
- name: Show disk space before the tasks
41+
run: df -h
42+
4043
- name: Remove exec_depend
4144
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
4245

@@ -59,3 +62,6 @@ jobs:
5962
rosdistro: ${{ matrix.rosdistro }}
6063
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
6164
build-depends-repos: ${{ matrix.build-depends-repos }}
65+
66+
- name: Show disk space after the tasks
67+
run: df -h

.github/workflows/build-and-test-differential.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,27 @@ jobs:
1616
build-and-test-differential:
1717
needs: prevent-no-label-execution
1818
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
19-
runs-on: [self-hosted, linux, X64]
19+
runs-on: ubuntu-latest
2020
container: ${{ matrix.container }}${{ matrix.container-suffix }}
2121
strategy:
2222
fail-fast: false
2323
matrix:
2424
rosdistro:
2525
- humble
2626
container-suffix:
27+
- ""
2728
- -cuda
2829
include:
2930
- rosdistro: humble
30-
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
31+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
3132
build-depends-repos: build_depends.repos
3233
steps:
3334
- name: Check out repository
3435
uses: actions/checkout@v3
3536
with:
3637
fetch-depth: 0
3738

38-
- name: Check disk space before build
39+
- name: Show disk space before the tasks
3940
run: df -h
4041

4142
- name: Remove exec_depend
@@ -71,5 +72,5 @@ jobs:
7172
verbose: true
7273
flags: differential
7374

74-
- name: Check disk space after build
75+
- name: Show disk space after the tasks
7576
run: df -h

.github/workflows/build-and-test.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build-and-test:
1111
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12-
runs-on: [self-hosted, linux, X64]
12+
runs-on: ubuntu-latest
1313
container: ${{ matrix.container }}${{ matrix.container-suffix }}
1414
strategy:
1515
fail-fast: false
@@ -21,12 +21,15 @@ jobs:
2121
- -cuda
2222
include:
2323
- rosdistro: humble
24-
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
24+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
2525
build-depends-repos: build_depends.repos
2626
steps:
2727
- name: Check out repository
2828
uses: actions/checkout@v3
2929

30+
- name: Show disk space before the tasks
31+
run: df -h
32+
3033
- name: Remove exec_depend
3134
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
3235

@@ -59,3 +62,6 @@ jobs:
5962
fail_ci_if_error: false
6063
verbose: true
6164
flags: total
65+
66+
- name: Show disk space after the tasks
67+
run: df -h

0 commit comments

Comments
 (0)