Skip to content

Commit

Permalink
chore: add musl build targets for arm64, v6l, v7, x86 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown authored May 16, 2024
1 parent 90c30e4 commit 4985d83
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 416 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ rustflags = [ "-C", "target-feature=-crt-static" ]

[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.i686-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,26 @@ jobs:
platform: musllinux_x86_64
image: alpine
runs-on: buildjet-4vcpu-ubuntu-2204
- target: aarch64-unknown-linux-musl
platform: musllinux_aarch64
image: alpine
runs-on: buildjet-4vcpu-ubuntu-2204-arm
- target: arm-unknown-linux-gnueabihf
platform: linux_armv6l
image: ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: arm-unknown-linux-musleabihf
platform: musllinux_armv6l
image: ghcr.io/cross-rs/arm-unknown-linux-musleabihf:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: armv7-unknown-linux-musleabihf
platform: musllinux_armv7l
image: ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: i686-unknown-linux-musl
platform: musllinux_x86
image: ghcr.io/cross-rs/i686-unknown-linux-musl:main
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Setup dependencies
if: ${{ startsWith(matrix.image, 'ubuntu') }}
Expand Down
Loading

0 comments on commit 4985d83

Please sign in to comment.