Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajime-san committed Feb 7, 2025
1 parent 2943334 commit f2ea70b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ echo "sysroot env:"
cat /sysroot/.env
. /sysroot/.env
if [ "$(uname -s)" = "Linux" ]; then
if [ "$(uname -m)" = "aarch64" ]; then
export PKG_CONFIG_LIBDIR=/sysroot/usr/lib/aarch64-linux-gnu/pkgconfig
fi
fi
# Important notes:
# 1. -ldl seems to be required to avoid a failure in FFI tests. This flag seems
# to be in the Rust default flags in the smoketest, so uncertain why we need
Expand Down Expand Up @@ -155,11 +161,6 @@ RUSTDOCFLAGS<<__1
__1
CC=/usr/bin/clang-${llvmVersion}
CFLAGS=$CFLAGS
if [ "$(uname -s)" = "Linux" ]; then
if [ "$(uname -m)" = "aarch64" ]; then
export PKG_CONFIG_LIBDIR=/sysroot/usr/lib/aarch64-linux-gnu/pkgconfig
fi
fi
" > $GITHUB_ENV`,
};

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ jobs:
cat /sysroot/.env
. /sysroot/.env
if [ "$(uname -s)" = "Linux" ]; then
if [ "$(uname -m)" = "aarch64" ]; then
export PKG_CONFIG_LIBDIR=/sysroot/usr/lib/aarch64-linux-gnu/pkgconfig
fi
fi
# Important notes:
# 1. -ldl seems to be required to avoid a failure in FFI tests. This flag seems
# to be in the Rust default flags in the smoketest, so uncertain why we need
Expand Down Expand Up @@ -332,11 +338,6 @@ jobs:
__1
CC=/usr/bin/clang-19
CFLAGS=$CFLAGS
if [ "$(uname -s)" = "Linux" ]; then
if [ "$(uname -m)" = "aarch64" ]; then
export PKG_CONFIG_LIBDIR=/sysroot/usr/lib/aarch64-linux-gnu/pkgconfig
fi
fi
" > $GITHUB_ENV
- name: Remove macOS cURL --ipv4 flag
run: |-
Expand Down

0 comments on commit f2ea70b

Please sign in to comment.