From 0cecbf0a7d7ad6970938acec7ba2007276c567f9 Mon Sep 17 00:00:00 2001 From: Wolf3s <75867486+wolfysdl@users.noreply.github.com> Date: Mon, 29 Aug 2022 18:13:23 -0300 Subject: [PATCH] add ci cpp-check and clang format on tutorial_08.hpp (#137) * Create check-format.yml * Fix --- .github/workflows/check-format.yml | 35 +++++++++++++++++++ tutorials/08-skybox-debug/inc/tutorial_08.hpp | 4 +-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/check-format.yml diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml new file mode 100644 index 0000000..819d623 --- /dev/null +++ b/.github/workflows/check-format.yml @@ -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 diff --git a/tutorials/08-skybox-debug/inc/tutorial_08.hpp b/tutorials/08-skybox-debug/inc/tutorial_08.hpp index 4cbc834..7c19c46 100644 --- a/tutorials/08-skybox-debug/inc/tutorial_08.hpp +++ b/tutorials/08-skybox-debug/inc/tutorial_08.hpp @@ -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;