Skip to content

Commit 6003720

Browse files
MichaelRabekigaw
authored andcommitted
ci: add a musl build job
Builds with musl libc get broken too often. This patch suggests a new GitHub CI build job to help maintain them being functional. Closes: #2565 Link: #2565 Signed-off-by: Michal Rábek <[email protected]>
1 parent 8f77594 commit 6003720

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ jobs:
136136
run: |
137137
make static
138138
139+
build-musl:
140+
name: build with musl standard C library
141+
runs-on: ubuntu-latest
142+
container:
143+
image: ghcr.io/linux-nvme/debian:latest
144+
steps:
145+
- uses: actions/checkout@v5
146+
- name: Mark repo as safe for git
147+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
148+
- name: build
149+
run: |
150+
CC=musl-gcc scripts/build.sh musl
151+
139152
build-distro:
140153
name: build libnvme and nvme-cli separately
141154
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)