forked from mavlink/MAVSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Connection status only reported as false when the flight cont…
…roller disconnects (#19) * Changed heartbeats to only disable when all other systems have timed out. * Changed MAVSDK server to only report connection status of primary system. * Corrected behaviour to pass unit tests. * Added Github workflow to build mavsdk_server and create a release.
- Loading branch information
Showing
4 changed files
with
74 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build Sees Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
ubuntu22-superbuild: | ||
name: ubuntu-22.04 (mavsdk_server, superbuild) | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ./build/release/third_party/install | ||
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }} | ||
- name: disable superbuild on cache hit | ||
if: steps.cache.outputs.cache-hit == 'true' | ||
run: echo "superbuild=-DSUPERBUILD=OFF" >> $GITHUB_ENV && echo "cmake_prefix_path=-DCMAKE_PREFIX_PATH=$(pwd)/build/release/third_party/install" >> $GITHUB_ENV | ||
- name: install pymavlink dependencies | ||
run: sudo apt-get update && sudo apt-get install -y python3-future build-essential cmake | ||
- name: configure | ||
run: cmake $superbuild $cmake_prefix_path -DCMAKE_BUILD_TYPE=Release -DBUILD_MAVSDK_SERVER=ON -DWERROR=OFF -Bbuild/release -H. | ||
- name: build | ||
run: cmake --build build/release -j2 | ||
- name: install | ||
run: sudo cmake --build build/release --target install | ||
- name: install examples dependencies | ||
run: sudo apt-get install -y libsdl2-dev | ||
- name: configure examples | ||
run: (cd examples && cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=OFF -Bbuild -H.) | ||
- name: build examples | ||
run: (cd examples && cmake --build build -j2) | ||
- name: test | ||
run: ./build/release/src/unit_tests_runner | ||
- name: test (mavsdk_server) | ||
run: ./build/release/src/mavsdk_server/test/unit_tests_mavsdk_server | ||
- name: test FTP server | ||
run: ./build/release/src/integration_tests/integration_tests_runner --gtest_filter="FtpTest.TestServer" | ||
- name: Upload release binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mavsdk_server_sees_x86_64 | ||
path: ./install/bin/mavsdk_server | ||
- name: Create Release | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
run: gh release create --verify-tag --draft --generate-notes $TAG install/bin/mavsdk_server | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG: ${{ github.ref_name }} |
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