mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 15:53:42 +00:00
Merge 2ec175d6ad8915e5be3c504681e4ea8bdf0f6ecb into 92283e41ba59ad9315488ad36d4ce0853256588f
This commit is contained in:
commit
166ea55812
47
.github/workflows/cpp-linter.yaml
vendored
Normal file
47
.github/workflows/cpp-linter.yaml
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cpp-linter:
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
- name: Generate compile-commands
|
||||||
|
uses: threeal/cmake-action@main
|
||||||
|
with:
|
||||||
|
build-dir: 'build'
|
||||||
|
run-build: false
|
||||||
|
options: 'CMAKE_EXPORT_COMPILE_COMMANDS=1'
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: compile_commands
|
||||||
|
path: /home/runner/work/Engine/Engine/build
|
||||||
|
- uses: cpp-linter/cpp-linter-action@main
|
||||||
|
id: linter
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
style: 'file'
|
||||||
|
tidy-checks: ''
|
||||||
|
version: 18
|
||||||
|
files-changed-only: false
|
||||||
|
ignore: 'docs | build'
|
||||||
|
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
|
||||||
|
database: 'build'
|
||||||
|
extra-args: '-xc++'
|
||||||
|
tidy-review: true
|
||||||
|
format-review: true
|
||||||
|
|
||||||
|
- name: Fail fast?!
|
||||||
|
if: steps.linter.outputs.checks-failed > 0
|
||||||
|
run: |
|
||||||
|
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
|
||||||
|
# for actual deployment
|
||||||
|
# run: exit 1
|
||||||
Loading…
x
Reference in New Issue
Block a user