-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c802cfc
commit 34ba65c
Showing
3 changed files
with
77 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build Project | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
types: [review_requested, ready_for_review, synchronize] | ||
|
||
jobs: | ||
build: | ||
if: github.event.pull_request.requested_reviewers[0] != null | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install ARM Toolchain | ||
uses: carlosperate/[email protected] | ||
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 make clean all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
name: Clang Format | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
types: [review_requested, ready_for_review] | ||
types: | ||
- closed | ||
|
||
jobs: | ||
build: | ||
format: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Format | ||
uses: DoozyX/[email protected] | ||
with: | ||
source: './src ./include/VOSS' | ||
clangFormatVersion: 14 | ||
inplace: True | ||
- name: Commit | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
message: 'Committing clang-format changes' | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Format | ||
uses: DoozyX/[email protected] | ||
with: | ||
source: './src ./include/VOSS' | ||
clangFormatVersion: 14 | ||
inplace: True | ||
- name: Commit | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
message: 'Committing clang-format changes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Clang Tidy | ||
|
||
on: | ||
- review_requested | ||
- ready_for_review | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install ARM Toolchain | ||
uses: carlosperate/[email protected] | ||
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/[email protected] |