Skip to content

Commit cf4c5fe

Browse files
committed
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 Signed-off-by: Michal Rábek <[email protected]>
1 parent bd856d5 commit cf4c5fe

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
@@ -139,6 +139,19 @@ jobs:
139139
run: |
140140
make static
141141
142+
build-musl:
143+
name: build with musl standard C library
144+
runs-on: ubuntu-latest
145+
container:
146+
image: ghcr.io/linux-nvme/debian:latest
147+
steps:
148+
- uses: actions/checkout@v5
149+
- name: Mark repo as safe for git
150+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
151+
- name: build
152+
run: |
153+
CC=musl-gcc scripts/build.sh musl
154+
142155
build-distro:
143156
name: build libnvme and nvme-cli separately
144157
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)