feat: added simple GUI to visualize AUV position and internal status #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang-Format Code Style Check | |
on: [pull_request] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install clang-format | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y clang-format | |
- name: Run clang-format check | |
run: | | |
# Find all C/C++ source and header files | |
find . -type f \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' -o -name '*.h' -o -name '*.hpp' -o -name '*.hh' -o -name '*.hxx' \) -print0 | xargs -0 clang-format -i | |
# Check if any files were modified | |
if [[ $(git status --porcelain) ]]; then | |
echo "Code is not properly formatted. Please run clang-format." | |
echo "Modified files:" | |
git status --porcelain | |
echo "Differences:" | |
git --no-pager diff | |
exit 1 | |
else | |
echo "All code is properly formatted." | |
fi |