-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
ci: Upload Artifacts to S3
- replaces metadata and deploy workflows - move ci scripts under Tools/ci
Showing
6 changed files
with
135 additions
and
219 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without 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
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,46 @@ | ||
#!/bin/bash | ||
|
||
mkdir artifacts | ||
cp **/**/*.px4 artifacts/ | ||
cp **/**/*.elf artifacts/ | ||
for build_dir_path in build/*/ ; do | ||
build_dir=${build_dir_path#*/} | ||
build_dir=${build_dir::${#build_dir}-1} | ||
mkdir artifacts/$build_dir | ||
find artifacts/ -maxdepth 1 -type f -name "*$build_dir*" | ||
# Airframe | ||
cp $build_dir_path/airframes.xml artifacts/$build_dir/ | ||
# Parameters | ||
cp $build_dir_path/parameters.xml artifacts/$build_dir/ | ||
cp $build_dir_path/parameters.json artifacts/$build_dir/ | ||
cp $build_dir_path/parameters.json.xz artifacts/$build_dir/ | ||
# Actuators | ||
cp $build_dir_path/actuators.json artifacts/$build_dir/ | ||
cp $build_dir_path/actuators.json.xz artifacts/$build_dir/ | ||
# Events | ||
cp $build_dir_path/events/all_events.json.xz artifacts/$build_dir/ | ||
# ROS 2 msgs | ||
cp $build_dir_path/events/all_events.json.xz artifacts/$build_dir/ | ||
# Module Docs | ||
ls -la artifacts/$build_dir | ||
echo "----------" | ||
done | ||
|
||
# general metadata | ||
mkdir artifacts/_general/ | ||
cp artifacts/px4_sitl_default/airframes.xml artifacts/_general/ | ||
# Airframe | ||
cp artifacts/px4_sitl_default/airframes.xml artifacts/_general/ | ||
# Parameters | ||
cp artifacts/px4_sitl_default/parameters.xml artifacts/_general/ | ||
cp artifacts/px4_sitl_default/parameters.json artifacts/_general/ | ||
cp artifacts/px4_sitl_default/parameters.json.xz artifacts/_general/ | ||
# Actuators | ||
cp artifacts/px4_sitl_default/actuators.json artifacts/_general/ | ||
cp artifacts/px4_sitl_default/actuators.json.xz artifacts/_general/ | ||
# Events | ||
cp artifacts/px4_sitl_default/events/all_events.json.xz artifacts/_general/ | ||
# ROS 2 msgs | ||
cp artifacts/px4_sitl_default/events/all_events.json.xz artifacts/_general/ | ||
# Module Docs | ||
ls -la artifacts/_general/ |