mirror of
https://github.com/intel/isa-l.git
synced 2025-01-05 22:59:52 +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:
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user