Skip to content

Commit

Permalink
RSDK-4857 Add steps to build musl binaries on alpine linux (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
biotinker authored Mar 7, 2024
1 parent 6ce7567 commit 526ad2e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.x86_64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ jobs:
platform: linux_x86_64
image: ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos
runs-on: buildjet-4vcpu-ubuntu-2204
- target: aarch64-unknown-linux-musl
platform: musllinux_aarch64
image: alpine
runs-on: buildjet-8vcpu-ubuntu-2204-arm
- target: x86_64-unknown-linux-musl
platform: musllinux_x86_64
image: alpine
runs-on: buildjet-4vcpu-ubuntu-2204
- target: arm-unknown-linux-gnueabihf
platform: linux_armv6l
image: ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main
Expand All @@ -155,6 +163,12 @@ jobs:
libtool \
m4 \
make
- name: Setup alpine dependencies
if: ${{ startsWith(matrix.image, 'alpine') }}
shell: sh
run: |
apk add libgcc \
curl
- name: Checkout Code
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 526ad2e

Please sign in to comment.