Use musl libc for ARM binaries (#1037)
This commit is contained in:
parent
daef7caaed
commit
a4bd1cb67c
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@ -16,17 +16,17 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- aarch64-unknown-linux-gnu
|
||||
- armv7-unknown-linux-gnueabihf
|
||||
- aarch64-unknown-linux-musl
|
||||
- armv7-unknown-linux-musleabihf
|
||||
- x86_64-apple-darwin
|
||||
- x86_64-pc-windows-msvc
|
||||
- x86_64-unknown-linux-musl
|
||||
include:
|
||||
- target: aarch64-unknown-linux-gnu
|
||||
- target: aarch64-unknown-linux-musl
|
||||
os: ubuntu-latest
|
||||
native: false
|
||||
target_rustflags: '--codegen linker=aarch64-linux-gnu-gcc'
|
||||
- target: armv7-unknown-linux-gnueabihf
|
||||
- target: armv7-unknown-linux-musleabihf
|
||||
os: ubuntu-latest
|
||||
native: false
|
||||
target_rustflags: '--codegen linker=arm-linux-gnueabihf-gcc'
|
||||
@ -56,13 +56,13 @@ jobs:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install AArch64 Toolchain
|
||||
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
|
||||
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install gcc-aarch64-linux-gnu
|
||||
|
||||
- name: Install ARM7 Toolchain
|
||||
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
|
||||
if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install gcc-arm-linux-gnueabihf
|
||||
|
@ -106,7 +106,7 @@ if [ -z ${target-} ]; then
|
||||
uname_target=`uname -m`-`uname -s`
|
||||
|
||||
case $uname_target in
|
||||
aarch64-Linux) target=aarch64-unknown-linux-gnu;;
|
||||
aarch64-Linux) target=aarch64-unknown-linux-musl;;
|
||||
x86_64-Darwin) target=x86_64-apple-darwin;;
|
||||
x86_64-Linux) target=x86_64-unknown-linux-musl;;
|
||||
x86_64-Windows_NT) target=x86_64-pc-windows-msvc;;
|
||||
|
Loading…
Reference in New Issue
Block a user