From 82e937c0f87d4594556ee30d0080768a18131421 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Thu, 19 Oct 2023 23:57:27 +0100 Subject: [PATCH] ci: add alpine tests I plan to package CDBA in alpine, as it uses musl libc it is a lot easier for things to break there. Add alpine latest edge and stable build tests to catch these. Signed-off-by: Caleb Connolly --- .github/workflows/ci.yml | 4 +++- ci/alpine.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100755 ci/alpine.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8eefd41..15ea69b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,8 @@ jobs: family: [x86-64] compiler: [gcc, clang] container: + - alpine:edge + - alpine:latest - archlinux:latest - debian:testing - debian:stable @@ -234,7 +236,7 @@ jobs: if: ${{ matrix.variant == '' }} run: | mkdir build - meson setup --werror . build + meson setup --errorlogs --werror . build - name: Compile run: ninja -C build diff --git a/ci/alpine.sh b/ci/alpine.sh new file mode 100755 index 0000000..c4b5083 --- /dev/null +++ b/ci/alpine.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (c) 2021 Canonical Ltd. +# Copyright (c) 2023 Linaro Ltd +# Author: Krzysztof Kozlowski +# +# + +set -ex + +PKGS_CC="gcc" +case $CC in + clang*) + PKGS_CC="clang" + ;; +esac + +apk add \ + linux-headers \ + libftdi1-dev \ + yaml-dev \ + eudev-dev \ + meson \ + musl-dev \ + libc-dev \ + $PKGS_CC + +echo "Install finished: $0"