diff --git a/.github/workflows/pros-build.yml b/.github/workflows/pros-build.yml new file mode 100644 index 0000000..6deec5c --- /dev/null +++ b/.github/workflows/pros-build.yml @@ -0,0 +1,29 @@ +name: Build Template + +on: + push: + branches: "**" + pull_request: + branches: "**" + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run LemLib/pros-build + id: build-template + uses: LemLib/pros-build@v2.0.1 + with: + copy_readme_and_license_to_include: true + lib_folder_name: units + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ steps.build-template.outputs.name }} + path: ${{ github.workspace }}/template/* \ No newline at end of file diff --git a/.github/workflows/test-clang-format.yml b/.github/workflows/test-clang-format.yml new file mode 100644 index 0000000..b3ea6d2 --- /dev/null +++ b/.github/workflows/test-clang-format.yml @@ -0,0 +1,20 @@ +name: test-clang-format + +on: + push: + branches: + - '*' + pull_request: + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.17 + with: + source: './include/controller' + extensions: 'hpp,cpp' + clangFormatVersion: 17