From 12e131cb34fd356bda7ccf480b434e5bc995cc32 Mon Sep 17 00:00:00 2001 From: Congyu Date: Sat, 2 Mar 2024 13:15:21 +0800 Subject: [PATCH] fix linux-cross CI --- .github/workflows/CI.yml | 14 ++++++++------ .github/workflows/PR.yml | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ad9cc23..3b84d9c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -203,12 +203,14 @@ jobs: container: congyuwang/manylinux_2_28_aarch64:llvm-17.0.6 env: LIBCLANG_PATH: /usr/local/lib - CC: /usr/local/bin/clang - CXX: /usr/local/bin/clang++ - AR: /usr/local/bin/llvm-ar - CFLAGS: "-flto=thin -O3" - CXXFLAGS: "-flto=thin -O3" - RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld" + CC_aarch64_unknown_linux_gnu: /usr/local/bin/clang + CXX_aarch64_unknown_linux_gnu: /usr/local/bin/clang++ + AR_aarch64_unknown_linux_gnu: /usr/local/bin/llvm-ar + CFLAGS_aarch64_unknown_linux_gnu: "-flto=thin -O3" + CXXFLAGS_aarch64_unknown_linux_gnu: "-flto=thin -O3" + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "/usr/local/bin/clang" + BINDGEN_EXTRA_CLANG_aarch64_unknown_linux_gnu: "--sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot/" + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld" - uses: uraimo/run-on-arch-action@v2 name: Install built wheel and test with: diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 2b51105..66a3f22 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -203,12 +203,14 @@ jobs: container: congyuwang/manylinux_2_28_aarch64:llvm-17.0.6 env: LIBCLANG_PATH: /usr/local/lib - CC: /usr/local/bin/clang - CXX: /usr/local/bin/clang++ - AR: /usr/local/bin/llvm-ar - CFLAGS: "-flto=thin -O3" - CXXFLAGS: "-flto=thin -O3" - RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld" + CC_aarch64_unknown_linux_gnu: /usr/local/bin/clang + CXX_aarch64_unknown_linux_gnu: /usr/local/bin/clang++ + AR_aarch64_unknown_linux_gnu: /usr/local/bin/llvm-ar + CFLAGS_aarch64_unknown_linux_gnu: "-flto=thin -O3" + CXXFLAGS_aarch64_unknown_linux_gnu: "-flto=thin -O3" + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "/usr/local/bin/clang" + BINDGEN_EXTRA_CLANG_aarch64_unknown_linux_gnu: "--sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot/" + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld" - uses: uraimo/run-on-arch-action@v2 name: Install built wheel and test with: