Skip to content

Commit

Permalink
chore(ci): fix errors in clang-tidy-differential job in `build-and-…
Browse files Browse the repository at this point in the history
…test-differential` workflow when all diffs are deletion (#7737)

* chore(ci): fix errors in clang-tidy-differential job in build-and-test-differential workflow when all diffs are deletion

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

* chore: delete lidar_centerpoint_tvm package for test
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

* Revert "chore: delete lidar_centerpoint_tvm package for test"

This reverts commit 339519a.
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

---------

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
  • Loading branch information
HansRobo authored and KhalilSelyan committed Jul 22, 2024
1 parent e671d3d commit c41691f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ jobs:
id: get-modified-packages
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1

- name: Get modified files
id: get-modified-files
- name: Get changed files (existing files only)
id: get-changed-files
run: |
echo "changed_files=$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' | tr '\n' ' ' || true)" >> $GITHUB_OUTPUT
echo "changed-files=$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' | while read -r file; do [ -e "$file" ] && echo -n "$file "; done)" >> $GITHUB_OUTPUT
shell: bash

- name: Run clang-tidy
if: ${{ steps.get-modified-files.outputs.changed_files != '' }}
if: ${{ steps.get-changed-files.outputs.changed-files != '' }}
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
with:
rosdistro: humble
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
target-files: ${{ steps.get-modified-files.outputs.changed_files }}
target-files: ${{ steps.get-changed-files.outputs.changed-files }}
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
build-depends-repos: build_depends.repos
cache-key-element: cuda
Expand Down

0 comments on commit c41691f

Please sign in to comment.