Skip to content

Commit

Permalink
fix linux-cross CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Congyuwang committed Mar 2, 2024
1 parent 45a4078 commit 9836451
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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_ARGS_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "--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:
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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_ARGS_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "--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:
Expand Down

0 comments on commit 9836451

Please sign in to comment.