Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Sep 8, 2023
1 parent 9631c32 commit 0c3ba0f
Showing 1 changed file with 9 additions and 63 deletions.
72 changes: 9 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ jobs:
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global --add safe.directory /github/workspace
- name: install pymavlink dependencies
run: python3 -m pip install future
- name: configure
run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MAVSDK_SERVER=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -Bbuild/release -H.
- name: build
Expand Down Expand Up @@ -484,16 +486,15 @@ jobs:
- name: macOS-framework
build-framework: ON
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/cache@v2
id: cache
with:
path: ./build/macos/third_party/install
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./third_party/**') }}
- name: fetch git tags for version
run: git fetch --tags
- 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/macos/third_party/install" >> $GITHUB_ENV
Expand Down Expand Up @@ -539,24 +540,25 @@ jobs:
platform: SIMULATOR64
sdk: iphonesimulator
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}/third_party/install
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./third_party/**', './tools/ios.toolchain.cmake') }}
- name: fetch git tags for version
run: git fetch --tags
- 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/${{ matrix.name }}/third_party/install" >> $GITHUB_ENV
- name: set SDK-related environment variables (for non-cmake deps)
run: |
echo "SDKROOT=$(xcrun --sdk ${{ matrix.sdk }} --show-sdk-path)" >> $GITHUB_ENV
- name: install pymavlink dependencies
run: python3 -m pip install future
run: |
python3 -m pip install --upgrade pip
python3 -m pip install future
- name: configure
run: cmake $superbuild $cmake_prefix_path -DENABLE_STRICT_TRY_COMPILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$(pwd)/tools/ios.toolchain.cmake -DPLATFORM=${{ matrix.platform }} -DDEPLOYMENT_TARGET=13.0 -DBUILD_MAVSDK_SERVER=ON -DBUILD_SHARED_LIBS=OFF -DWERROR=OFF -Bbuild/${{ matrix.name }} -H.
- name: build
Expand Down Expand Up @@ -664,59 +666,3 @@ jobs:
asset_name: 'mavsdk_server_win32.exe'
tag: ${{ github.ref }}
overwrite: true

px4-sitl-newer:
name: PX4 SITL ${{ matrix.px4_version }} (ubuntu-20.04)
runs-on: ubuntu-20.04
container: mavsdk/mavsdk-ubuntu-20.04-px4-sitl-${{ matrix.px4_version }}
strategy:
matrix:
px4_version: [v1.11, v1.12]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: git permission workaround
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global --add safe.directory /github/workspace
- name: install pymavlink dependencies
run: python3 -m pip install future
- name: test
run: PX4_VERSION=${{ matrix.px4_version }} tools/run-sitl-tests.sh /home/user/Firmware
timeout-minutes: 45
- name: look at core files
if: failure()
run: gdb /home/user/Firmware/build/px4_sitl_default/bin/px4 px4.core -ex "thread apply all bt" -ex "quit"

apm-sitl-newer:
name: APM SITL ${{ matrix.apm_version }} (ubuntu-20.04)
runs-on: ubuntu-20.04
container:
image: mavsdk/mavsdk-ubuntu-20.04-apm-sitl-${{ matrix.apm_version }}
options: --privileged
env:
APM_HOME_LAT: 47.397742
APM_HOME_LONG: 8.545594
APM_HOME_ALT: 488.0
APM_HOME_DIR: 180
WORKDIR: "/home/user/MAVSDK"
FIRMWARE_DIR: /home/user/ArduPilot
strategy:
matrix:
apm_version: [copter-4.1.2]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: git permission workaround
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global --add safe.directory /github/workspace
- name: install pymavlink dependencies
run: python3 -m pip install future
- name: test
run: APM_VERSION=${{ matrix.apm_version }} tools/run-sitl-tests.sh /home/user/ArduPilot
timeout-minutes: 45

0 comments on commit 0c3ba0f

Please sign in to comment.