Skip to content

Commit

Permalink
CI: more alpine debugging tries
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Nov 1, 2023
1 parent 1ee9ebd commit 101d161
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,68 @@ jobs:
tag: ${{ github.ref }}
overwrite: true

alpine-linux-debug:
name: alpine 3.16.0 (musl)
runs-on: ubuntu-20.04
container: alpine:3.16.0
steps:
- name: install tools
run: apk update && apk add build-base cmake git linux-headers perl tar python3 py3-pip
- uses: actions/checkout@v3
with:
submodules: recursive
- name: git permission workaround
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global --add safe.directory /github/workspace
- uses: actions/cache@v3
id: cache
with:
path: ./build/debug/third_party/install
key: ${{ github.job }}-${{ 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=Debug -DBUILD_MAVSDK_SERVER=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -Bbuild/debug -H.
- name: build
run: cmake --build build/debug --target install -- -j2
- name: unit tests
run: ./build/debug/src/unit_tests/unit_tests_runner
- name: system tests
run: ./build/debug/src/system_tests/system_tests_runner

alpine-linux-debug:
name: alpine 3.16.0 (musl)
runs-on: ubuntu-20.04
container: alpine:3.16.0
steps:
- name: install tools
run: apk update && apk add build-base cmake git linux-headers perl tar python3 py3-pip
- uses: actions/checkout@v3
with:
submodules: recursive
- name: git permission workaround
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global --add safe.directory /github/workspace
- uses: actions/cache@v3
id: cache
with:
path: ./build/debug/third_party/install
key: ${{ github.job }}-${{ 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=Debug -DBUILD_MAVSDK_SERVER=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=install -DWERROR=OFF -Bbuild/debug -DASAN=ON -H.
- name: build
run: cmake --build build/debug --target install -- -j2
- name: unit tests
run: ./build/debug/src/unit_tests/unit_tests_runner
- name: system tests
run: ./build/debug/src/system_tests/system_tests_runner

dockcross-linux-musl:
name: ${{ matrix.arch_name }}
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 101d161

Please sign in to comment.