Skip to content

Commit 7cbb8ca

Browse files
committed
ci: add build job in an Alpine container with musl
This patch introduces a new CI job that builds the project with musl standard C library in the environment in which it is most commonly used - Alpine Linux. Signed-off-by: Michal Rábek <[email protected]>
1 parent 62e9e6c commit 7cbb8ca

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
make static
141141
142142
build-musl:
143-
name: build with musl standard C library
143+
name: musl libc build on Debian
144144
runs-on: ubuntu-latest
145145
container:
146146
image: ghcr.io/linux-nvme/debian:latest
@@ -152,6 +152,19 @@ jobs:
152152
run: |
153153
CC=musl-gcc scripts/build.sh musl
154154
155+
build-alpine:
156+
name: musl libc build on Alpine
157+
runs-on: ubuntu-latest
158+
container:
159+
image: ghcr.io/linux-nvme/alpine:next
160+
steps:
161+
- uses: actions/checkout@v5
162+
- name: Mark repo as safe for git
163+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
164+
- name: build
165+
run: |
166+
scripts/build.sh musl
167+
155168
build-distro:
156169
name: build libnvme and nvme-cli separately
157170
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)