mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 02:06:27 +08:00
github actions build and run emlid navio2 on hardware
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
name: Hardware Linux
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: [emlid_navio2]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
CCACHE_BASEDIR: ${GITHUB_WORKSPACE}
|
||||||
|
run: |
|
||||||
|
make distclean
|
||||||
|
ccache -z
|
||||||
|
make emlid_navio2_default
|
||||||
|
ccache -s
|
||||||
|
|
||||||
|
# sanity check
|
||||||
|
- name: Sanity check
|
||||||
|
run: cd build/emlid_navio2_default/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config
|
||||||
|
|
||||||
|
- name: Upload log to flight review
|
||||||
|
run: find . -name *.ulg
|
||||||
|
#run: ./Tools/upload_log.py -q --description "${GITHUB_WORKFLOW} ${GITHUB_RUN_ID}" --feedback "${GITHUB_WORKFLOW} ${GITHUB_RUN_ID} ${GITHUB_REPOSITORY} ${GITHUB_REF}" --source CI ./build/px4_sitl_default/tmp/rootfs/log/*/*.ulg
|
||||||
@@ -50,7 +50,7 @@ fi
|
|||||||
navio_sysfs_rc_in start
|
navio_sysfs_rc_in start
|
||||||
linux_pwm_out start
|
linux_pwm_out start
|
||||||
|
|
||||||
logger start -t -b 200
|
logger start -t -f -b 200
|
||||||
|
|
||||||
mavlink boot_complete
|
mavlink boot_complete
|
||||||
|
|
||||||
@@ -70,8 +70,6 @@ mavlink status
|
|||||||
sleep 1
|
sleep 1
|
||||||
mavlink status streams
|
mavlink status streams
|
||||||
sleep 1
|
sleep 1
|
||||||
param show
|
|
||||||
sleep 1
|
|
||||||
param status
|
param status
|
||||||
sleep 1
|
sleep 1
|
||||||
pwm info
|
pwm info
|
||||||
|
|||||||
Reference in New Issue
Block a user