Split Ftp plugin into Ftp and FtpServer #3385
Workflow file for this run
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
name: Build and Test | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
ubuntu20-hunter: | |
name: ubuntu-20.04 (mavsdk, hunter) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ~/.hunter | |
key: ${{ github.job }}-${{ hashFiles('~/.hunter/**') }}-3 | |
- name: install mavlink on the system | |
run: | | |
cmake -Bthird_party/mavlink/build -Sthird_party/mavlink | |
sudo cmake --build third_party/mavlink/build | |
- name: configure | |
run: cmake -DSUPERBUILD=OFF -DHUNTER_ENABLED=ON -DCMAKE_TOOLCHAIN_FILE=$(pwd)/src/cmake/fpic_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MAVSDK_SERVER=OFF -DBUILD_SHARED_LIBS=OFF -Bbuild -H. | |
- name: build | |
run: cmake --build build -j2 | |
- name: enable core dumps | |
run: | | |
sudo bash -c 'echo "/home/runner/work/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern' | |
sudo cat /proc/sys/kernel/core_pattern | |
mkdir /home/runner/work/cores/ | |
- name: test enabling cores | |
run: | | |
ulimit -c # should output 0 if disabled | |
ulimit -c unlimited | |
ulimit -c | |
- name: unit tests | |
run: ./build/src/unit_tests/unit_tests_runner | |
- name: system tests | |
run: ./build/src/system_tests/system_tests_runner --gtest_catch_exceptions=0 | |
- name: check core files | |
if: failure() | |
run: | | |
ls -l /home/runner/work/cores/ | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: crashes | |
path: | | |
/home/runner/work/cores/ | |
./build/ |