diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de96a2b935..4d16a5a82b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -114,6 +114,37 @@ jobs: - name: test (mavsdk_server) run: ./build/release/src/mavsdk_server/test/unit_tests_mavsdk_server + ubuntu-superbuild-asan: + name: ${{ matrix.ubuntu_image }} (mavsdk_server, superbuild) + runs-on: ${{ matrix.ubuntu_image }} + strategy: + matrix: + ubuntu_image: [ubuntu-20.04, ubuntu-22.04] + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + - uses: actions/cache@v3 + id: cache + with: + path: ./build/release/third_party/install + key: ${{ github.job }}-${{ matrix.ubuntu_image }}-${{ 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: configure + run: cmake $superbuild $cmake_prefix_path -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_MAVSDK_SERVER=ON -DWERROR=OFF -DASAN=On -Bbuild/release -H. + - name: build + run: cmake --build build/release -j2 + - name: install + run: sudo cmake --build build/release --target install + - name: unit tests + run: ./build/release/src/unit_tests/unit_tests_runner + - name: system tests + run: ./build/release/src/system_tests/system_tests_runner + - name: test (mavsdk_server) + run: ./build/release/src/mavsdk_server/test/unit_tests_mavsdk_server + ubuntu20-hunter: name: ubuntu-20.04 (mavsdk, hunter) runs-on: ubuntu-20.04