Skip to content

Commit e631461

Browse files
committed
ci: link against musl
Signed-off-by: Gavin Inglis <[email protected]>
1 parent cecde67 commit e631461

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
- uses: actions/setup-go@v5
2121
with:
2222
go-version: "^1.18"
23-
# Install `patch`, needed to build `krane-bundle`
24-
- run: sudo apt-get install -y patch
25-
- run: make build
23+
# Install `patch`, needed to build `krane-bundle`, and tools for linking against musl
24+
- run: sudo apt-get install -y patch musl-tools musl-dev
25+
- run: rustup target add x86_64-unknown-linux-musl
26+
- run: CARGO_BUILD_TARGET=x86_64-unknown-linux-musl make build
2627

2728
cross-build:
2829
runs-on:

0 commit comments

Comments
 (0)