Skip to content

Commit

Permalink
chore: update find_lib.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Oct 31, 2023
1 parent fac89cc commit a6d0846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,14 @@ jobs:
export MACOSX_DEPLOYMENT_TARGET=12.0
export MACOS_DEPLOYMENT_TARGET=12.0
python ./.github/workflows/scripts/find_lib.py ssl
PREFIX="/usr/local/Cellar/openssl@3/3.1.3"
PREFIX=$(python ./.github/workflows/scripts/find_lib.py ssl)
echo $PREFIX
ls $PREFIX
export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -I$PREFIX/include"
export CXXFLAGS="$CXXFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -Wl,-S -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -lssl -lcrypto"
export LIBRARY_PATH="$LIBRARY_PATH:$PREFIX/lib"
DYLD_LIBRARY_PATH="$LIBRARY_PATH" python -m cibuildwheel --output-dir wheelhouse
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/find_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main():
return 1
libbase = Path(libpath)
libbase = libbase.resolve()
print(libbase) # noqa: T201
print(libbase.parent.parent) # noqa: T201
return 0


Expand Down

0 comments on commit a6d0846

Please sign in to comment.