Skip to content

Commit

Permalink
try to switch llvm 12 → 18
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 6, 2024
1 parent 7abf5aa commit 9bd1da1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ jobs:
- name: Install Dependencies
run: |
sudo apt update
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 12
sudo apt install clang-tidy-12 clang-format-12
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18
sudo apt install clang-tidy-18 clang-format-18
- name: Static analysis
working-directory: ${{github.workspace}}/stm32/libcanard/bxcan/
run: clang-tidy-12 src/*.c --extra-arg='-DBXCAN_MAX_IFACE_INDEX=1' --extra-arg='-DBXCAN_BUSYWAIT_DELAY_SYSTEM_CORE_CLOCK=72000000'
run: clang-tidy-18 src/*.c --extra-arg='-DBXCAN_MAX_IFACE_INDEX=1' --extra-arg='-DBXCAN_BUSYWAIT_DELAY_SYSTEM_CORE_CLOCK=72000000'

- name: Format check
working-directory: ${{github.workspace}}/stm32/libcanard/bxcan/
run: |
clang-format-12 -i -fallback-style=none -style=file --verbose src/*.[ch]
clang-format-18 -i -fallback-style=none -style=file --verbose src/*.[ch]
modified="$(git status --porcelain --untracked-files=no)"
if [ -n "$modified" ]; then echo "Please format code properly."; exit 1; fi

0 comments on commit 9bd1da1

Please sign in to comment.