-
-
Notifications
You must be signed in to change notification settings - Fork 892
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
3eef463
commit d3bfc43
Showing
7 changed files
with
72 additions
and
71 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
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
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,46 +1,46 @@ | ||
name: lint-formatter | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- 'include/**/*.h*' | ||
- 'src/**/*.c*' | ||
push: | ||
paths: | ||
- 'include/**/*.h*' | ||
- 'src/**/*.c*' | ||
|
||
jobs: | ||
lint-formatter-job: | ||
name: Auto-apply clang-format | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: technote-space/get-diff-action@v6 | ||
with: | ||
PATTERNS: | | ||
include/**/*.h* | ||
src/**/*.c* | ||
- name: Setup Python and pip | ||
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes. | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11.x | ||
cache: 'pip' | ||
cache-dependency-path: .github/workflows/requirements-linter.txt | ||
|
||
- name: Install Python requirements for runner | ||
if: env.GIT_DIFF && !env.MATCHED_FILES | ||
run: pip install -r .github/workflows/requirements-linter.txt | ||
|
||
- name: Format file | ||
if: env.GIT_DIFF && !env.MATCHED_FILES | ||
run: | | ||
clang-format -i ${{ env.GIT_DIFF_FILTERED }} | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: env.GIT_DIFF && !env.MATCHED_FILES | ||
with: | ||
commit_message: "Applied clang-format." | ||
lint-formatter-job: | ||
name: Auto-apply clang-format | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: technote-space/get-diff-action@v6 | ||
with: | ||
PATTERNS: | | ||
include/**/*.h* | ||
src/**/*.c* | ||
- name: Setup Python and pip | ||
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes. | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11.x | ||
cache: 'pip' | ||
cache-dependency-path: .github/workflows/requirements-linter.txt | ||
|
||
- name: Install Python requirements for runner | ||
if: env.GIT_DIFF && !env.MATCHED_FILES | ||
run: pip install -r .github/workflows/requirements-linter.txt | ||
|
||
- name: Format file | ||
if: env.GIT_DIFF && !env.MATCHED_FILES | ||
run: | | ||
clang-format -i ${{ env.GIT_DIFF_FILTERED }} | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: env.GIT_DIFF && !env.MATCHED_FILES | ||
with: | ||
commit_message: "Applied clang-format." |
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
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
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,15 +1,15 @@ | ||
name: process-pull-request | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, reopened, edited, synchronize, review_requested, ready_for_review, assigned] | ||
pull_request_target: | ||
types: [ opened, reopened, edited, synchronize, review_requested, ready_for_review, assigned ] | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | ||
with: | ||
labels: 'PR: Community Contribution :crown:' | ||
add_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | ||
with: | ||
labels: 'PR: Community Contribution :crown:' |
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
d3bfc43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.75
.InfillTest/Infill_generate_connect/0/400
7.965376673575326
ms/iter4.32114434261831
ms/iter1.84
This comment was automatically generated by workflow using github-action-benchmark.