Skip to content

Commit e2e43cc

Browse files
committed
ci: add a musl build job
Signed-off-by: Michal Rábek <[email protected]>
1 parent f10c00e commit e2e43cc

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,21 @@ 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: Install musl build dependencies
152+
- run: apt-get install -y --no-install-recommends musl musl-dev musl-tools
153+
- name: build
154+
run: |
155+
CC=musl-gcc scripts/build.sh musl
156+
142157
build-distro:
143158
name: build libnvme and nvme-cli separately
144159
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)