mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
workflows: use clang-format-18 to check format
Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
This commit is contained in:
parent
9ab5a9e579
commit
75ce489550
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -13,13 +13,19 @@ permissions:
|
||||
|
||||
jobs:
|
||||
check_format:
|
||||
env:
|
||||
CLANGFORMAT: clang-format-18
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Install indent
|
||||
run: sudo apt install indent
|
||||
- name: Install clang-format-18
|
||||
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
|
||||
run: bash tools/check_format.sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user