Fix AArch64 release build error (#1942)
This commit is contained in:
parent
628d085bf2
commit
b40e006fab
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -53,7 +53,7 @@ jobs:
|
||||
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install gcc-aarch64-linux-gnu
|
||||
sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-i386
|
||||
|
||||
- name: Install ARM Toolchain
|
||||
if: ${{ matrix.target == 'arm-unknown-linux-musleabihf' || matrix.target == 'armv7-unknown-linux-musleabihf' }}
|
||||
|
@ -12,6 +12,10 @@ test -f Cargo.lock || cargo generate-lockfile
|
||||
echo "Installing rust toolchain for $TARGET..."
|
||||
rustup target add $TARGET
|
||||
|
||||
if [[ $TARGET == aarch64-unknown-linux-musl ]]; then
|
||||
export CC=aarch64-linux-gnu-gcc
|
||||
fi
|
||||
|
||||
echo "Building just..."
|
||||
RUSTFLAGS="--deny warnings --codegen target-feature=+crt-static $TARGET_RUSTFLAGS" \
|
||||
cargo build --bin just --target $TARGET --release
|
||||
|
Loading…
Reference in New Issue
Block a user