Skip to content

Commit bd568e8

Browse files
authored
ci(build-and-test-differential): bring back clang-tidy-differential job (#6647)
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent 413514b commit bd568e8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

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

+37
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,40 @@ jobs:
7474

7575
- name: Show disk space after the tasks
7676
run: df -h
77+
78+
clang-tidy-differential:
79+
runs-on: ubuntu-latest
80+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt-cuda
81+
steps:
82+
- name: Check out repository
83+
uses: actions/checkout@v3
84+
with:
85+
fetch-depth: 0
86+
87+
- name: Show disk space before the tasks
88+
run: df -h
89+
90+
- name: Remove exec_depend
91+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
92+
93+
- name: Get modified packages
94+
id: get-modified-packages
95+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
96+
97+
- name: Get modified files
98+
id: get-modified-files
99+
uses: tj-actions/changed-files@v35
100+
with:
101+
files: |
102+
**/*.cpp
103+
**/*.hpp
104+
105+
- name: Run clang-tidy
106+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
107+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
108+
with:
109+
rosdistro: humble
110+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
111+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
112+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
113+
build-depends-repos: build_depends.repos

0 commit comments

Comments
 (0)