add ci cpp-check and clang format on tutorial_08.hpp (#137)

* Create check-format.yml

* Fix
This commit is contained in:
Wolf3s
2022-08-29 18:13:23 -03:00
committed by GitHub
parent f46b058ecf
commit 0cecbf0a7d
2 changed files with 37 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
#This is a modified version of the clang format check used on Open-PS2-Loader
name: CI-cpp-check
on:
push:
paths:
- '**.hpp'
- '**.cpp'
- '**.'
- '**.h'
- './engine/inc/tyra'
- '.github/workflows/check-format.yml'
- '.clang-format'
pull_request:
paths:
- '**.hpp'
- '**.cpp'
- '**.'
- '**.h'
- './engine/inc/tyra'
- '.github/workflows/check-format.yml'
- '.clang-format'
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.12
with:
source: '.'
extensions: 'hpp, cpp, h'
clangFormatVersion: 12
inplace: False
@@ -26,10 +26,10 @@ class Tutorial08 : public Game {
void loadCupMesh();
void loadSkyboxMesh();
Vec4 cameraPosition, cameraLookAt;
Vec4 cameraPosition;
Vec4 cameraLookAt;
Engine* engine;
u8 fpsCounter;
StaticPipeline stapip;