Skip to content

Commit

Permalink
Fix github workflows (#888)
Browse files Browse the repository at this point in the history
* Fix github workflows

This commit fixes the github actions workflows due to recent changes in the firmware
- change default branch name from master to main
- do not validate the omnicopter sdf file

* Fix mavsdk address
  • Loading branch information
Jaeyoung-Lim authored Jul 31, 2022
1 parent afb2f97 commit 6c0376a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/firmware_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Firmware Build and SITL Tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- '*'
Expand All @@ -21,17 +21,17 @@ jobs:
image: px4io/px4-dev-simulation-focal:2021-05-31
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
steps:
- name: Checkout Firmware master
- name: Checkout Firmware main
uses: actions/[email protected]
with:
repository: PX4/Firmware
ref: master
ref: main
path: Firmware
fetch-depth: 0
submodules: recurvise
- name: Checkout matching branch on PX4/Firmware if possible
run: |
git checkout ${{github.head_ref}} || echo "Firmware branch: ${{github.head_ref}} not found, using master instead"
git checkout ${{github.head_ref}} || echo "Firmware branch: ${{github.head_ref}} not found, using main instead"
git submodule update --init --recursive
working-directory: Firmware
- name: Configure Firmware to include current sitl_gazebo version
Expand All @@ -41,10 +41,10 @@ jobs:
git checkout ${{github.head_ref}}
- name: Download MAVSDK
working-directory: Firmware
run: wget "https://github.com/mavlink/MAVSDK/releases/download/v$(cat test/mavsdk_tests/MAVSDK_VERSION)/mavsdk_$(cat test/mavsdk_tests/MAVSDK_VERSION)_ubuntu20.04_amd64.deb"
run: wget "https://github.com/mavlink/MAVSDK/releases/download/v$(cat test/mavsdk_tests/MAVSDK_VERSION)/libmavsdk-dev_$(cat test/mavsdk_tests/MAVSDK_VERSION)_ubuntu20.04_amd64.deb"
- name: Install MAVSDK
working-directory: Firmware
run: dpkg -i "mavsdk_$(cat test/mavsdk_tests/MAVSDK_VERSION)_ubuntu20.04_amd64.deb"
run: dpkg -i "libmavsdk-dev_$(cat test/mavsdk_tests/MAVSDK_VERSION)_ubuntu20.04_amd64.deb"
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate_sdf.bash
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ -d ${MODELS_DIR} ]; then
! -name '3DR_gps_mag.sdf' ! -name 'px4flow.sdf' \
! -name 'pixhawk.sdf' ! -name 'c920.sdf' \
! -name 'iris.sdf' ! -name 'iris_hitl.sdf' ! -name 'delta_wing.sdf' ! -name 'r1_rover.sdf' \
! -name 'fpv_cam.sdf' ! -name 'iris_triple_depth_camera.sdf')"
! -name 'fpv_cam.sdf' ! -name 'omnicopter.sdf' ! -name 'iris_triple_depth_camera.sdf')"
else
echo "${MODELS_DIR} doesn't exist!"
delete_schema
Expand Down

0 comments on commit 6c0376a

Please sign in to comment.