Skip to content

Commit e580afb

Browse files
committed
workflows: Add MUSL build test
Address issue #92 by adding an Alpine container to the "makefile.yaml" workflow. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 9e66565 commit e580afb

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

.github/workflows/makefile.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Build tests
44
on: [push, pull_request, workflow_dispatch]
55

66
jobs:
7-
build:
7+
build-glibc:
88

99
runs-on: ubuntu-latest
1010
permissions: read-all
@@ -41,3 +41,45 @@ jobs:
4141

4242
- name: Distcheck
4343
run: make distcheck
44+
45+
build-musl:
46+
47+
runs-on: ubuntu-latest
48+
container: alpine:latest
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
platform:
53+
- linux/amd64
54+
- linux/arm64
55+
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- name: Install dependencies
60+
run: |
61+
apk update
62+
apk add --no-cache \
63+
build-base \
64+
autoconf \
65+
automake \
66+
libtool \
67+
gnutls-dev \
68+
keyutils-dev \
69+
libnl3-dev \
70+
glib-dev \
71+
linux-headers
72+
73+
- name: Configure
74+
run: |
75+
./autogen.sh
76+
./configure --with-systemd
77+
78+
- name: Build
79+
run: make
80+
81+
- name: Check
82+
run: make check
83+
84+
- name: Distcheck
85+
run: make distcheck

0 commit comments

Comments
 (0)