From df52fb65983809472cb2f86bcf6f5532e7df3b85 Mon Sep 17 00:00:00 2001 From: Daniel Meister Date: Mon, 5 Aug 2024 13:46:09 +0900 Subject: [PATCH] Autoformat --- .github/workflows/format.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/format.yaml diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml new file mode 100644 index 0000000..72c699d --- /dev/null +++ b/.github/workflows/format.yaml @@ -0,0 +1,28 @@ +name: Run clang-format Linter + +on: + pull_request: + branches: + - main + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + - uses: DoozyX/clang-format-lint-action@v0.15 + with: + source: './tutorials' + exclude: './contrib ./tools ./hiprt' + extensions: 'h,cpp,c' + clangFormatVersion: 15 + inplace: True + - uses: EndBug/add-and-commit@v9.1.1 + with: + author_name: rprbuild + author_email: a1rpr@amd.com + message: 'Automatic: Committing clang-format changes' \ No newline at end of file