From cb41490df98276cc9f2e07938cdce9efe75d0e53 Mon Sep 17 00:00:00 2001 From: Joinhack Date: Sat, 28 Dec 2024 13:31:09 +0800 Subject: [PATCH] use the musl gcc --- .github/workflows/runtime_release_linux.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/runtime_release_linux.yml b/.github/workflows/runtime_release_linux.yml index 4beaae6..79157db 100644 --- a/.github/workflows/runtime_release_linux.yml +++ b/.github/workflows/runtime_release_linux.yml @@ -50,6 +50,7 @@ jobs: sudo apt install gcc-aarch64-linux-gnu curl https://musl.cc/aarch64-linux-musl-cross.tgz -o aarch64-linux-musl-cross.tgz tar xzvf aarch64-linux-musl-cross.tgz + sudo mv aarch64-linux-musl-cross / echo `pwd` sudo apt-get install build-essential gcc musl-tools musl-dev make perl dkms - uses: actions-rs/toolchain@v1 @@ -63,7 +64,7 @@ jobs: - name: Build runtime uses: actions-rs/cargo@v1 env: - PATH: "$PATH:/aarch64-linux-musl-cross/bin" + PATH: ${{ env.PATH }}:/aarch64-linux-musl-cross/bin RUSTFLAGS: "-C link-arg=-L/usr/local/lib" LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/usr/local/lib" DYLD_LIBRARY_PATH: "$DYLD_LIBRARY_PATH:/usr/local/lib"