Skip to content

Commit a4762aa

Browse files
author
M. Fatih Cırıt
committedMar 18, 2024
ci(build-and-test-differential): bring back clang-tidy-differential job
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent 413514b commit a4762aa

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

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

+35
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,38 @@ jobs:
7474

7575
- name: Show disk space after the tasks
7676
run: df -h
77+
78+
clang-tidy-differential:
79+
runs-on: [self-hosted, linux, X64]
80+
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt-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

0 commit comments

Comments
 (0)