forked from PX4/PX4-Autopilot
-
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.
Merge pull request #6 from iq-motion-control/feature/update_to_new_main
Feature/update to new main
- Loading branch information
Showing
1,404 changed files
with
55,526 additions
and
19,472 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
|
||
[{*.{c,cpp,cc,h,hpp},CMakeLists.txt,Kconfig}] | ||
indent_style = tab | ||
tab_width = 8 | ||
# Not in the official standard, but supported by many editors | ||
max_line_length = 120 | ||
|
||
[*.yaml, *.yml] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Build all targets | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'stable' | ||
- 'beta' | ||
- 'release/*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
group_targets: | ||
name: Scan for Board Targets | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
timestamp: ${{ steps.set-timestamp.outputs.timestamp }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Python Dependencies | ||
uses: py-actions/py-dependency-install@v4 | ||
with: | ||
path: "./Tools/setup/requirements.txt" | ||
|
||
- id: set-matrix | ||
run: echo "::set-output name=matrix::$(./Tools/generate_board_targets_json.py --group)" | ||
|
||
- id: set-timestamp | ||
run: echo "::set-output name=timestamp::$(date +"%Y%m%d%H%M%S")" | ||
|
||
setup: | ||
name: ${{ matrix.group }} | ||
runs-on: ubuntu-latest | ||
needs: group_targets | ||
strategy: | ||
matrix: ${{ fromJson(needs.group_targets.outputs.matrix) }} | ||
container: | ||
image: ${{ matrix.container }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: ownership workaround | ||
run: git config --system --add safe.directory '*' | ||
|
||
- name: ccache setup keys | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.ccache | ||
key: ${{ matrix.group }}-ccache-${{ needs.group_targets.outputs.timestamp }} | ||
restore-keys: ${{ matrix.group }}-ccache-${{ needs.group_targets.outputs.timestamp }} | ||
|
||
- name: setup ccache | ||
run: | | ||
mkdir -p ~/.ccache | ||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf | ||
echo "compression = true" >> ~/.ccache/ccache.conf | ||
echo "compression_level = 6" >> ~/.ccache/ccache.conf | ||
echo "max_size = 120M" >> ~/.ccache/ccache.conf | ||
echo "hash_dir = false" >> ~/.ccache/ccache.conf | ||
ccache -s | ||
ccache -z | ||
- name: build target group | ||
run: | | ||
./Tools/ci_build_all_runner.sh ${{matrix.targets}} | ||
- name: Upload px4 package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: px4_${{matrix.group}}_build_artifacts | ||
path: | | ||
build/**/*.px4 | ||
build/**/*.bin | ||
compression-level: 0 | ||
|
||
- name: ccache post-run | ||
run: ccache -s |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.