From 61bd5e9bae1e64c6a216f2a0c937a61053955670 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 13 Aug 2024 00:23:53 +0200 Subject: [PATCH] .github: add alpine to environement setup test --- .github/workflows/test_environment.yml | 36 +++++++++++++++++++ .../install-prereqs-alpine.sh | 0 2 files changed, 36 insertions(+) mode change 100644 => 100755 Tools/environment_install/install-prereqs-alpine.sh diff --git a/.github/workflows/test_environment.yml b/.github/workflows/test_environment.yml index 411fbbd263..1442f2baa8 100644 --- a/.github/workflows/test_environment.yml +++ b/.github/workflows/test_environment.yml @@ -123,6 +123,7 @@ jobs: ./waf rover - name: test build Chibios ${{matrix.os}}.${{matrix.name}} + if: matrix.os != 'alpine' env: DISABLE_MAVNATIVE: True DEBIAN_FRONTEND: noninteractive @@ -141,3 +142,38 @@ jobs: git config --global --add safe.directory /__w/ardupilot/ardupilot ./waf configure --board CubeOrange ./waf plane + + build-alpine: # special case for alpine as it doesn't have bash by default + runs-on: ubuntu-22.04 + container: + image: alpine:latest + options: --privileged + steps: + - name: Install Git + timeout-minutes: 30 + env: + DEBIAN_FRONTEND: noninteractive + TZ: Europe/Paris + run: | + apk update && apk add --no-cache git + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: test install environment alpine + timeout-minutes: 60 + env: + DISABLE_MAVNATIVE: True + TZ: Europe/Paris + SKIP_AP_GIT_CHECK: 1 + run: | + PATH="/github/home/.local/bin:$PATH" + Tools/environment_install/install-prereqs-alpine.sh + - name: test build STIL alpine + env: + DISABLE_MAVNATIVE: True + TZ: Europe/Paris + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} + git config --global --add safe.directory /__w/ardupilot/ardupilot + ./waf configure + ./waf rover \ No newline at end of file diff --git a/Tools/environment_install/install-prereqs-alpine.sh b/Tools/environment_install/install-prereqs-alpine.sh old mode 100644 new mode 100755