-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/bidirectional_dshot_single_timer
- Loading branch information
Showing
216 changed files
with
4,111 additions
and
1,900 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,17 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: px4io/px4-dev-clang:2021-09-08 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{secrets.ACCESS_TOKEN}} | ||
fetch-depth: 0 | ||
|
||
- uses: corrupt952/[email protected] | ||
- name: Testing (clang-tidy-quiet) | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
command: make clang-tidy-quiet | ||
max_attempts: 3 | ||
image: px4io/px4-dev-clang:2021-09-08 | ||
options: -v ${{ github.workspace }}:/workspace | ||
run: | | ||
cd /workspace | ||
git config --global --add safe.directory /workspace | ||
make clang-tidy-quiet |
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,21 +1,28 @@ | ||
name: EKF Change Indicator | ||
|
||
on: pull_request | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
container: px4io/px4-dev-base-focal:2021-09-08 | ||
steps: | ||
- uses: actions/checkout@v2.3.1 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: checkout newest version of branch | ||
run: | | ||
git fetch origin pull/${{github.event.pull_request.number}}/head:${{github.head_ref}} | ||
git checkout ${GITHUB_HEAD_REF} | ||
|
||
- name: main test | ||
run: make tests TESTFILTER=EKF | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: px4io/px4-dev-base-focal:2021-09-08 | ||
options: -v ${{ github.workspace }}:/workspace | ||
run: | | ||
cd /workspace | ||
git config --global --add safe.directory /workspace | ||
make tests TESTFILTER=EKF | ||
- name: Check if there is a functional change | ||
run: git diff --exit-code | ||
working-directory: src/modules/ekf2/test/change_indication |
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 |
---|---|---|
|
@@ -5,25 +5,40 @@ on: push | |
jobs: | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
container: px4io/px4-dev-base-focal:2021-09-08 | ||
env: | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: PX4BuildBot | ||
steps: | ||
- uses: actions/checkout@v2.3.1 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: main test updates change indication files | ||
run: make tests TESTFILTER=EKF | ||
|
||
- name: main test | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: px4io/px4-dev-base-focal:2021-09-08 | ||
options: -v ${{ github.workspace }}:/workspace | ||
run: | | ||
cd /workspace | ||
git config --global --add safe.directory /workspace | ||
make tests TESTFILTER=EKF | ||
- name: Check if there exists diff and save result in variable | ||
run: echo "CHANGE_INDICATED=$(git diff --exit-code --output=/dev/null || echo $?)" >> $GITHUB_ENV | ||
id: diff-check | ||
run: echo "CHANGE_INDICATED=$(git diff --exit-code --output=/dev/null || echo $?)" >> $GITHUB_OUTPUT | ||
working-directory: src/modules/ekf2/test/change_indication | ||
|
||
- name: auto-commit any changes to change indication | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: '[AUTO COMMIT] update change indication' | ||
file_pattern: 'src/modules/ekf2/test/change_indication/*.csv' | ||
commit_user_name: ${GIT_COMMITTER_NAME} | ||
commit_user_email: ${GIT_COMMITTER_EMAIL} | ||
- if: ${{env.CHANGE_INDICATED}} | ||
name: if there is a functional change, fail check | ||
commit_message: | | ||
'[AUTO COMMIT] update change indication' | ||
See .github/workflopws/ekf_update_change_indicator.yml for more details | ||
- name: if there is a functional change, fail check | ||
if: ${{ steps.diff-check.outputs.CHANGE_INDICATED }} | ||
run: exit 1 |
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
Oops, something went wrong.