From b004a114817a4d342fb04f15a965708dba2baf41 Mon Sep 17 00:00:00 2001 From: onon1101 Date: Sun, 21 Apr 2024 13:38:26 +0800 Subject: [PATCH] test --- .github/workflows/clang-format-check.yml | 19 +++++++++++++++++++ .github/workflows/main.yml | 4 ---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/clang-format-check.yml diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml new file mode 100644 index 00000000..fa171666 --- /dev/null +++ b/.github/workflows/clang-format-check.yml @@ -0,0 +1,19 @@ +name: clang-format Check +on: [push, pull_request] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + strategy: + matrix: + path: + - "src" + - "include" + steps: + - uses: actions/checkout@v3 + - name: Run clang-format style check for C/C++/Protobuf programs. + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: "18" + check-path: ${{ matrix.path }} + fallback-style: "Mozilla" # optional diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 07a3c5ab..dbe52d17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,10 +29,6 @@ jobs: deps_cmdline: brew install cmake ninja mesa-glu mesa xorg-server steps: - # - if: matrix.config.os == 'windows-latest' && matrix.config.compiler == 'msvc' - # name: "Set Windows-MSVC-Compiler" - # uses: egor-tensin/vs-shell@v2 - - if: matrix.config.os == 'windows-latest' && matrix.config.compiler == 'mingw' name: "Set Windows-MinGW-Compiler" uses: seanmiddleditch/gha-setup-ninja@master