Fix typo & other problems (#12)

* Ignore external deps
* Clang 16
* clang-format 16
* Fix linting action
This commit is contained in:
Isaac Marovitz 2023-07-06 22:48:59 +01:00 committed by GitHub
parent 0bda85fdc2
commit 098220217c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 201 additions and 153 deletions

View file

@ -11,4 +11,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3
- name: Run clang-format
uses: jidicula/clang-format-action@4.11.0
uses: jidicula/clang-format-action@v4.11.0
with:
exclude-regex: (libspirv|3rdparty)
clang-format-version: 16

View file

@ -12,14 +12,10 @@ jobs:
uses: ZedThree/clang-tidy-review@v0.13.1
id: review
with:
clang_tidy_version: 15
apt_packages: libunwind-dev, libglfw3-dev, libvulkan-dev, vulkan-validationlayers-dev, spirv-tools
cmake_command: cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=on
# Uploads an artefact containing clang_fixes.json
split_workflow: true
- name: Upload review
uses: ZedThree/clang-tidy-review/upload@v0.13.1
id: upload-review
# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1
id: upload-review

13
.github/workflows/tidy-comments.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: Post clang-tidy review comments
on:
workflow_run:
workflows: ["Linting"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: ZedThree/clang-tidy-review/post@v0.12.0
with:
lgtm_comment_body: "No linting issues found!"