Skip to content

Update to mavsdk v2.10.2 #74

Update to mavsdk v2.10.2

Update to mavsdk v2.10.2 #74

Workflow file for this run

name: Build for RPi
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- '*'
jobs:
create-deb-package:
name: Create .deb package
runs-on: ubuntu-22.04
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: none
distro: none
base_image: arm64v8/debian:bookworm
githubToken: ${{ github.token }}
run: |
apt-get update
apt-get install -y libgstreamer1.0-dev libgstrtspserver-1.0-dev build-essential cmake git wget rubygems
gem install fpm
wget https://github.com/mavlink/MAVSDK/releases/download/v2.10.2/libmavsdk-dev_2.10.2_debian12_arm64.deb
dpkg -i libmavsdk-dev_2.10.2_debian12_arm64.deb
rm libmavsdk-dev_2.10.2_debian12_arm64.deb
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -Bbuild -S.
cmake --build build -j$(nproc) --target install
./create_packages.sh ./install . arm64 siyi-a8-mini-camera-manager
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: deb-package
path: |
*.deb
- name: Upload to release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*.deb