Skip to content

Commit c5054cd

Browse files
committed
test openadk images
Signed-off-by: oguzkaganozt <oguzkaganozt@gmail.com>
1 parent 86b4335 commit c5054cd

4 files changed

+290
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: build-and-test-differential-openadk-arm64
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- labeled
9+
workflow_dispatch:
10+
11+
jobs:
12+
prevent-no-label-execution:
13+
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
14+
with:
15+
label: ARM64
16+
17+
build-and-test-differential-self-hosted:
18+
needs: prevent-no-label-execution
19+
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
20+
runs-on: [self-hosted, linux, ARM64]
21+
container: ${{ matrix.container }}${{ matrix.container-suffix }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
rosdistro:
26+
- humble
27+
container-suffix:
28+
- ""
29+
- -cuda
30+
include:
31+
- rosdistro: humble
32+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
33+
build-depends-repos: build_depends.repos
34+
steps:
35+
- name: Check out repository
36+
uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
40+
- name: Remove exec_depend
41+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
42+
43+
- name: Get modified packages
44+
id: get-modified-packages
45+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
46+
47+
- name: Build
48+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
49+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
50+
with:
51+
rosdistro: ${{ matrix.rosdistro }}
52+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
53+
build-depends-repos: ${{ matrix.build-depends-repos }}
54+
55+
- name: Test
56+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
57+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
58+
with:
59+
rosdistro: ${{ matrix.rosdistro }}
60+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
61+
build-depends-repos: ${{ matrix.build-depends-repos }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
name: build-and-test-differential-openadk
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- labeled
9+
10+
jobs:
11+
prevent-no-label-execution:
12+
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
13+
with:
14+
label: tag:run-build-and-test-differential
15+
16+
build-and-test-differential:
17+
needs: prevent-no-label-execution
18+
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
19+
runs-on: ubuntu-latest
20+
container: ${{ matrix.container }}${{ matrix.container-suffix }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
rosdistro:
25+
- humble
26+
container-suffix:
27+
- ""
28+
- -cuda
29+
include:
30+
- rosdistro: humble
31+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
32+
build-depends-repos: build_depends.repos
33+
steps:
34+
- name: Check out repository
35+
uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Check disk space before build
40+
run: df -h
41+
42+
- name: Remove exec_depend
43+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
44+
45+
- name: Get modified packages
46+
id: get-modified-packages
47+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
48+
49+
- name: Build
50+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
51+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
52+
with:
53+
rosdistro: ${{ matrix.rosdistro }}
54+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
55+
build-depends-repos: ${{ matrix.build-depends-repos }}
56+
57+
- name: Test
58+
id: test
59+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
60+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
61+
with:
62+
rosdistro: ${{ matrix.rosdistro }}
63+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
64+
build-depends-repos: ${{ matrix.build-depends-repos }}
65+
66+
- name: Upload coverage to CodeCov
67+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
68+
uses: codecov/codecov-action@v3
69+
with:
70+
files: ${{ steps.test.outputs.coverage-report-files }}
71+
fail_ci_if_error: false
72+
verbose: true
73+
flags: differential
74+
75+
- name: Check disk space after build
76+
run: df -h
77+
78+
clang-tidy-differential:
79+
runs-on: [self-hosted, linux, X64]
80+
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
81+
needs: build-and-test-differential
82+
steps:
83+
- name: Check out repository
84+
uses: actions/checkout@v3
85+
with:
86+
fetch-depth: 0
87+
88+
- name: Remove exec_depend
89+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
90+
91+
- name: Get modified packages
92+
id: get-modified-packages
93+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
94+
95+
- name: Get modified files
96+
id: get-modified-files
97+
uses: tj-actions/changed-files@v35
98+
with:
99+
files: |
100+
**/*.cpp
101+
**/*.hpp
102+
103+
- name: Run clang-tidy
104+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
105+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
106+
with:
107+
rosdistro: humble
108+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
109+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
110+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
111+
build-depends-repos: build_depends.repos
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: build-and-test-openadk-arm64
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-and-test-self-hosted:
10+
runs-on: [self-hosted, linux, ARM64]
11+
container: ${{ matrix.container }}${{ matrix.container-suffix }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
rosdistro:
16+
- humble
17+
container-suffix:
18+
- ""
19+
- -cuda
20+
include:
21+
- rosdistro: humble
22+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
23+
build-depends-repos: build_depends.repos
24+
steps:
25+
- name: Check out repository
26+
uses: actions/checkout@v3
27+
28+
- name: Remove exec_depend
29+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
30+
31+
- name: Get self packages
32+
id: get-self-packages
33+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
34+
35+
- name: Build
36+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
37+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
38+
with:
39+
rosdistro: ${{ matrix.rosdistro }}
40+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
41+
build-depends-repos: ${{ matrix.build-depends-repos }}
42+
43+
- name: Test
44+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
45+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
46+
with:
47+
rosdistro: ${{ matrix.rosdistro }}
48+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
49+
build-depends-repos: ${{ matrix.build-depends-repos }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: build-and-test-openadk
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: 0 0 * * *
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-test:
11+
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12+
runs-on: ubuntu-latest
13+
container: ${{ matrix.container }}${{ matrix.container-suffix }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
rosdistro:
18+
- humble
19+
container-suffix:
20+
- ""
21+
- -cuda
22+
include:
23+
- rosdistro: humble
24+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
25+
build-depends-repos: build_depends.repos
26+
steps:
27+
- name: Check out repository
28+
uses: actions/checkout@v3
29+
30+
- name: Free disk space (Ubuntu)
31+
uses: jlumbroso/free-disk-space@v1.2.0
32+
with:
33+
tool-cache: false
34+
dotnet: false
35+
swap-storage: false
36+
large-packages: false
37+
38+
- name: Remove exec_depend
39+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
40+
41+
- name: Get self packages
42+
id: get-self-packages
43+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
44+
45+
- name: Build
46+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
47+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
48+
with:
49+
rosdistro: ${{ matrix.rosdistro }}
50+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
51+
build-depends-repos: ${{ matrix.build-depends-repos }}
52+
53+
- name: Test
54+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
55+
id: test
56+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
57+
with:
58+
rosdistro: ${{ matrix.rosdistro }}
59+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
60+
build-depends-repos: ${{ matrix.build-depends-repos }}
61+
62+
- name: Upload coverage to CodeCov
63+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
64+
uses: codecov/codecov-action@v3
65+
with:
66+
files: ${{ steps.test.outputs.coverage-report-files }}
67+
fail_ci_if_error: false
68+
verbose: true
69+
flags: total

0 commit comments

Comments
 (0)