Update clang-format workflow to use pre-built container and remove installation step
This commit is contained in:
parent
28928c64ff
commit
80d3299b51
6
.github/workflows/clang-format.yml
vendored
6
.github/workflows/clang-format.yml
vendored
@ -8,6 +8,7 @@ on:
|
||||
jobs:
|
||||
clang-tools:
|
||||
runs-on: ubuntu-latest
|
||||
container: silkeh/clang:latest # Pre-built container with clang tools
|
||||
|
||||
permissions:
|
||||
contents: write # Needed to push changes back
|
||||
@ -18,11 +19,6 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.head_ref }} # checkout the PR branch so we can push back
|
||||
|
||||
- name: Install clang tools
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y clang-format clang-tidy
|
||||
|
||||
- name: Run clang-format and auto-fix
|
||||
run: |
|
||||
FILES=$(find . -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.hpp')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user