Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
#tags:
# - 'v*'
paths:
- 'docs/**'
- 'cpp/docs/**'
pull_request:
paths:
- 'docs/**'
- 'cpp/docs/**'

workflow_dispatch:

Expand All @@ -31,13 +31,13 @@ jobs:
node-version: 20
cache: npm
# Specify the path to lock file for correct caching
cache-dependency-path: ./docs/yarn.lock
cache-dependency-path: ./cpp/docs/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile --cwd ./docs
run: yarn install --frozen-lockfile --cwd ./cpp/docs

- name: Build with VitePress
working-directory: ./docs
working-directory: ./cpp/docs
run: |
npm run docs:build
touch .vitepress/dist/.nojekyll
Expand All @@ -46,7 +46,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: mavsdk_docs_build
path: docs/.vitepress/dist/
path: cpp/docs/.vitepress/dist/
retention-days: 1

deploy:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- 'cpp/docs/**'
pull_request:
branches:
- '*'
paths-ignore:
- 'docs/**'
- 'cpp/docs/**'

defaults:
run:
working-directory: cpp

jobs:
fuzz:
Expand All @@ -31,7 +35,7 @@ jobs:
uses: actions/cache@v4
id: cache-deps
with:
path: ./build/fuzz/third_party/install
path: ./cpp/build/fuzz/third_party/install
key: fuzz-deps-${{ hashFiles('./third_party/**') }}-1

- name: Disable superbuild on cache hit
Expand Down Expand Up @@ -126,8 +130,8 @@ jobs:
with:
name: fuzzer-binary-${{ github.run_id }}
path: |
./build/fuzz/src/fuzz_tests/mavlink_fuzzer
./build/fuzz/src/mavsdk/libmavsdk.so*
./cpp/build/fuzz/src/fuzz_tests/mavlink_fuzzer
./cpp/build/fuzz/src/mavsdk/libmavsdk.so*
retention-days: 30

- name: Upload corpus on crash
Expand Down
80 changes: 43 additions & 37 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ on:
tags:
- 'v*'
paths-ignore:
- 'docs/**'
- 'cpp/docs/**'
pull_request:
branches:
- '*'
paths-ignore:
- 'docs/**'
- 'cpp/docs/**'
- '.github/workflows/docs_deploy.yml'
workflow_dispatch:

defaults:
run:
working-directory: cpp

jobs:
check-docker-changes:
name: Check Docker Changes
Expand All @@ -31,7 +35,7 @@ jobs:
id: check-changes
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46
with:
files: docker/**
files: ../docker/**
since_last_remote_commit: true
- name: List all changed files
id: set-any-changed
Expand Down Expand Up @@ -84,7 +88,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/third_party/install
path: ./cpp/build/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -118,10 +122,10 @@ jobs:
with:
name: test-binary-coverage-${{ github.run_id }}
path: |
./build/src/unit_tests/unit_tests_runner
./build/src/system_tests/system_tests_runner
./build/src/mavsdk/libmavsdk.so*
./build/src/mavsdk_server/src/libmavsdk_server.so*
./cpp/build/src/unit_tests/unit_tests_runner
./cpp/build/src/system_tests/system_tests_runner
./cpp/build/src/mavsdk/libmavsdk.so*
./cpp/build/src/mavsdk_server/src/libmavsdk_server.so*
retention-days: 7
- name: run lcov
run: lcov --capture --directory . --no-external --exclude "*/third_party/*" --output-file lcov.info
Expand All @@ -132,7 +136,7 @@ jobs:
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"
path-to-lcov: "./cpp/lcov.info"

ubuntu-debug:
name: Ubuntu 24.04 (Debug Build)
Expand All @@ -155,7 +159,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/debug/third_party/install
path: ./cpp/build/debug/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -192,7 +196,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/asan/third_party/install
path: ./cpp/build/asan/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -232,7 +236,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/tsan/third_party/install
path: ./cpp/build/tsan/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -272,7 +276,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/ubsan/third_party/install
path: ./cpp/build/ubsan/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -341,7 +345,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/release/third_party/install
path: ./cpp/build/release/third_party/install
key: ${{ github.job }}-${{ matrix.ubuntu_version }}-${{ matrix.cc }}-${{ hashFiles('./third_party/**') }}-2
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -381,11 +385,11 @@ jobs:
with:
name: test-binaries-${{ matrix.description }}-${{ github.run_id }}
path: |
./build/src/unit_tests/unit_tests_runner
./build/release/src/system_tests/system_tests_runner
./build/release/src/mavsdk_server/test/unit_tests_mavsdk_server
./build/release/src/mavsdk/libmavsdk.so*
./build/release/src/mavsdk_server/src/libmavsdk_server.so*
./cpp/build/src/unit_tests/unit_tests_runner
./cpp/build/release/src/system_tests/system_tests_runner
./cpp/build/release/src/mavsdk_server/test/unit_tests_mavsdk_server
./cpp/build/release/src/mavsdk/libmavsdk.so*
./cpp/build/release/src/mavsdk_server/src/libmavsdk_server.so*
retention-days: 7

ubuntu-no-curl:
Expand All @@ -403,7 +407,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/release/third_party/install
path: ./cpp/build/release/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -456,7 +460,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/default/third_party/install
path: ./cpp/build/default/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -564,12 +568,12 @@ jobs:
with:
name: test-binaries-${{ matrix.os_type }}-${{ matrix.os_version }}-${{ github.run_id }}
path: |
./build/release/src/unit_tests/unit_tests_runner
./build/release/src/system_tests/system_tests_runner
./build/release/src/system_tests/standalone_param_test
./build/release/src/system_tests/standalone_ftp_test
./build/release/src/mavsdk/libmavsdk.so*
./build/release/src/mavsdk_server/src/libmavsdk_server.so*
./cpp/build/release/src/unit_tests/unit_tests_runner
./cpp/build/release/src/system_tests/system_tests_runner
./cpp/build/release/src/system_tests/standalone_param_test
./cpp/build/release/src/system_tests/standalone_ftp_test
./cpp/build/release/src/mavsdk/libmavsdk.so*
./cpp/build/release/src/mavsdk_server/src/libmavsdk_server.so*
retention-days: 7
- name: install
run: cmake --build build/release --target install
Expand Down Expand Up @@ -624,7 +628,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/linux-${{ matrix.docker_name }}/third_party/install
path: ./cpp/build/linux-${{ matrix.docker_name }}/third_party/install
key: ${{ github.job }}-linux-${{ matrix.docker_name }}-${{ hashFiles('./third_party/**') }}-2
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand All @@ -636,7 +640,8 @@ jobs:
- name: build
run: ./dockcross-linux-${{ matrix.docker_name }}-custom cmake --build build/linux-${{ matrix.docker_name }} -j$(nproc) --target install
- name: create deb packages
run: ./dockcross-linux-${{ matrix.docker_name }}-custom tools/create_packages.sh ./build/linux-${{ matrix.docker_name }}/install . ${{ matrix.arch_name }} libmavsdk-dev
working-directory: .
run: ./cpp/dockcross-linux-${{ matrix.docker_name }}-custom cpp/tools/create_packages.sh ./cpp/build/linux-${{ matrix.docker_name }}/install . ${{ matrix.arch_name }} libmavsdk-dev
- if: ${{ matrix.rename_distro }}
name: Rename LTS versions from debian12 to debian11
run: |
Expand All @@ -659,6 +664,7 @@ jobs:
container: alpine:3.19.0
steps:
- name: install tools
working-directory: .
run: apk update && apk add build-base cmake git linux-headers perl tar python3 py3-pip rust cargo
- uses: actions/checkout@v4
with:
Expand All @@ -673,7 +679,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/release/third_party/install
path: ./cpp/build/release/third_party/install
key: ${{ github.job }}-${{ hashFiles('./third_party/**') }}-3
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand All @@ -694,7 +700,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: mavsdk_server_musl_x86_64
path: ./install/bin/mavsdk_server
path: ./cpp/install/bin/mavsdk_server
retention-days: 2
- name: Publish artifacts
if: startsWith(github.ref, 'refs/tags/v')
Expand Down Expand Up @@ -723,7 +729,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/${{ matrix.arch_name }}/third_party/install
path: ./cpp/build/${{ matrix.arch_name }}/third_party/install
key: ${{ github.job }}-${{ matrix.arch_name }}-${{ hashFiles('./third_party/**') }}-2
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand All @@ -738,14 +744,14 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: mavsdk_server_${{ matrix.arch_name }}
path: 'build/${{ matrix.arch_name }}/install/bin/mavsdk_server'
path: 'cpp/build/${{ matrix.arch_name }}/install/bin/mavsdk_server'
retention-days: 2
- name: Publish artifacts
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'build/${{ matrix.arch_name }}/install/bin/mavsdk_server'
file: 'cpp/build/${{ matrix.arch_name }}/install/bin/mavsdk_server'
asset_name: 'mavsdk_server_${{ matrix.arch_name }}'
tag: ${{ github.ref }}
overwrite: true
Expand Down Expand Up @@ -778,7 +784,7 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ./build/${{ matrix.name }}/third_party/install
path: ./cpp/build/${{ matrix.name }}/third_party/install
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./third_party/**') }}-2
- name: disable superbuild on cache hit
if: steps.cache.outputs.cache-hit == 'true'
Expand All @@ -795,14 +801,14 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: mavsdk_server_${{ matrix.name }}.tar
path: 'build/${{ matrix.name }}/export/mavsdk_server_${{ matrix.name }}.tar'
path: 'cpp/build/${{ matrix.name }}/export/mavsdk_server_${{ matrix.name }}.tar'
retention-days: 2
- name: Publish artifacts
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'build/${{ matrix.name }}/export/mavsdk_server_${{ matrix.name }}.tar'
file: 'cpp/build/${{ matrix.name }}/export/mavsdk_server_${{ matrix.name }}.tar'
asset_name: 'mavsdk_server_${{ matrix.name }}.tar'
tag: ${{ github.ref }}
overwrite: true
Loading
Loading