Skip to content

Commit 658fef1

Browse files
MichaelRabekigaw
authored andcommitted
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 7bc59a2 commit 658fef1

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
@@ -137,7 +137,7 @@ jobs:
137137
make static
138138
139139
build-musl:
140-
name: build with musl standard C library
140+
name: musl libc build on Debian
141141
runs-on: ubuntu-latest
142142
container:
143143
image: ghcr.io/linux-nvme/debian:latest
@@ -149,6 +149,19 @@ jobs:
149149
run: |
150150
CC=musl-gcc scripts/build.sh musl
151151
152+
build-alpine:
153+
name: musl libc build on Alpine
154+
runs-on: ubuntu-latest
155+
container:
156+
image: ghcr.io/linux-nvme/alpine:next
157+
steps:
158+
- uses: actions/checkout@v5
159+
- name: Mark repo as safe for git
160+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
161+
- name: build
162+
run: |
163+
scripts/build.sh musl
164+
152165
build-distro:
153166
name: build libnvme and nvme-cli separately
154167
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)