manual fetch aarch64

This commit is contained in:
Dedy Martadinata Supriyadi 2022-08-01 19:28:42 +07:00 committed by nitnelave
parent 520277b611
commit e6ae726304

View File

@ -150,7 +150,7 @@ jobs:
build-aarch64: build-aarch64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: martadinata666/debian:rust-dev image: rust:1.62
env: env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-musl-gcc CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-musl-gcc
@ -176,6 +176,11 @@ jobs:
key: lldap-bin-aarch64-${{ hashFiles('**/Cargo.lock') }} key: lldap-bin-aarch64-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
lldap-bin-aarch64- lldap-bin-aarch64-
- name: fetch musl-gcc
run: |
wget -c https://musl.cc/aarch64-linux-musl-cross.tgz
tar zxf ./x86_64-linux-musl-cross.tgz -C /opt
echo "/opt/aarch64-linux-musl-cross:/opt/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
# - name: build # - name: build
# run: ./build-arm64.sh # run: ./build-arm64.sh
- name: add musl aarch64 target - name: add musl aarch64 target