From 582fb8a182b1871a03e636f7e4d23603810c865d Mon Sep 17 00:00:00 2001 From: Victor Teo Date: Sat, 3 Feb 2024 05:07:52 +0800 Subject: [PATCH] 38f7e17 --- .github/workflows/CI.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 31a6a2e..d5d4c03 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -60,12 +60,14 @@ jobs: - host: ubuntu-latest target: aarch64-unknown-linux-gnu docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 - setup: | - sudo apt-get update - sudo apt-get install --yes --upgrade pkg-config build-essential cmake protobuf-compiler libssl-dev glibc-source musl-tools perl - export OPENSSL_LIB_DIR="/usr/lib/aarch64-linux-gnu" - export OPENSSL_INCLUDE="/usr/include/openssl" - build: yarn build --target aarch64-unknown-linux-gnu + build: | + set -e && + sudo apt-get update && + sudo apt-get install perl libssl-dev pkg-config -y && + export LDFLAGS="-L/usr/aarch64-unknown-linux-gnu/lib/gcc/aarch64-unknown-linux-gnu/4.8.5" && + export CFLAGS="-fuse-ld=lld -mcrc -B/usr/aarch64-unknown-linux-gnu/lib/gcc/aarch64-unknown-linux-gnu/4.8.5 --sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot" && + export CXXFLAGS="-fuse-ld=lld -mcrc -B/usr/aarch64-unknown-linux-gnu/lib/gcc/aarch64-unknown-linux-gnu/4.8.5 --sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot" && + yarn build --target aarch64-unknown-linux-gnu - host: ubuntu-latest target: armv7-unknown-linux-gnueabihf setup: |