add ci cpp-check and clang format on tutorial_08.hpp (#137)
* Create check-format.yml * Fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user