diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7c29012..7ed8e47 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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' }} diff --git a/bin/package b/bin/package index b273509..d794922 100755 --- a/bin/package +++ b/bin/package @@ -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