workflows: use clang-format-18 to check format

Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
This commit is contained in:
Marcel Cornu 2024-04-19 17:13:30 +01:00 committed by Pablo de Lara
parent 9ab5a9e579
commit 75ce489550

View File

@ -13,13 +13,19 @@ permissions:
jobs: jobs:
check_format: check_format:
env:
CLANGFORMAT: clang-format-18
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4
with: with:
fetch-depth: 2 fetch-depth: 2
- name: Install indent - name: Install clang-format-18
run: sudo apt install indent run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
sudo apt install -y clang-format-18
- name: Run format check - name: Run format check
run: bash tools/check_format.sh run: bash tools/check_format.sh