Skip to content

Commit

Permalink
👷 (linters): Upgrade to ubuntu 24.04, clang-format 18
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jul 18, 2024
1 parent e09774b commit bb96f2c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,14 @@ on: push
jobs:
clang_format:
name: clang-format
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Install clang-format 17
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
sudo apt update -y
sudo apt install -y --no-install-recommends clang-format-17
clang-format-17 --version
- name: Run clang-format
run: |
python3 tools/run-clang-format.py --clang-format-executable=clang-format-17 -r --extension=h,hpp,c,cpp --color=always --style=file ./app ./drivers ./libs ./spikes ./tests
python3 tools/run-clang-format.py --clang-format-executable=clang-format-18 -r --extension=h,hpp,c,cpp --color=always --style=file ./app ./drivers ./libs ./spikes ./tests

0 comments on commit bb96f2c

Please sign in to comment.