From 05aa548d550b1617ae9e30a44850899c2d443711 Mon Sep 17 00:00:00 2001 From: Andrew Lu Date: Wed, 20 Mar 2024 20:55:39 -0400 Subject: [PATCH] create clang tidy action --- .github/workflows/clang-tidy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/clang-tidy.yml diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml new file mode 100644 index 0000000..afd25ad --- /dev/null +++ b/.github/workflows/clang-tidy.yml @@ -0,0 +1,28 @@ +name: Build Project + +on: + pull_request: + types: [review_requested, ready_for_review] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install ARM Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.1 + with: + release: "10.3-2021.10" + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.9 + - run: pip install pros-cli + - name: Checkout + uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + - name: Build Project + run: pros build-compile-commands + - name: Run clang-tidy + uses: ZedThree/clang-tidy-review@v0.14.0 \ No newline at end of file