Skip to content

Commit

Permalink
gh-actions: fix clang-tidy step (attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDebrunner committed Oct 20, 2023
1 parent 9a67b54 commit 0c1b68b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ jobs:
sudo apt install --yes -qq clang-tidy
- name: clang tidy
run: |
PROJECT_ROOT_DIR="$(pwd)"
ROS_WS_DIR="$(readlink -f ${{ steps.ros-build.outputs.ros-workspace-directory-name }})"
cd "$ROS_WS_DIR"
cd src
cd $(find -name px4_ros2|head -1) # the path looks like this: 'src/zlrido15uw/px4_ros2'
./scripts/run-clang-tidy-on-project.sh "$ROS_WS_DIR"/build
echo "Running clang-tidy on $PWD"
"$PROJECT_ROOT_DIR/scripts/run-clang-tidy-on-project.sh" "$ROS_WS_DIR"/build

0 comments on commit 0c1b68b

Please sign in to comment.