Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aang099 committed Jul 28, 2024
1 parent 4c86e13 commit 85d0b92
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pros-build.yml
Original file line number Diff line number Diff line change
@@ -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/*
20 changes: 20 additions & 0 deletions .github/workflows/test-clang-format.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 85d0b92

Please sign in to comment.