Skip to content

Commit 67f2d38

Browse files
committed
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 <[email protected]>
1 parent ba8fa6e commit 67f2d38

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
family: [x86-64]
3333
compiler: [gcc, clang]
3434
container:
35+
- alpine:edge
36+
- alpine:latest
3537
- archlinux:latest
3638
- debian:testing
3739
- debian:stable

ci/alpine.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
# SPDX-License-Identifier: GPL-2.0
3+
#
4+
# Copyright (c) 2021 Canonical Ltd.
5+
# Copyright (c) 2023 Linaro Ltd
6+
# Author: Krzysztof Kozlowski <[email protected]>
7+
8+
#
9+
10+
set -ex
11+
12+
PKGS_CC="gcc"
13+
case $CC in
14+
clang*)
15+
PKGS_CC="clang"
16+
;;
17+
esac
18+
19+
apk add \
20+
linux-headers \
21+
libftdi1-dev \
22+
yaml-dev \
23+
eudev-dev \
24+
meson \
25+
musl-dev \
26+
libc-dev \
27+
$PKGS_CC
28+
29+
echo "Install finished: $0"

0 commit comments

Comments
 (0)