Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Sep 6, 2023
1 parent 2a366da commit 64c939d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- fixci
tags:
- 'v*'

Expand All @@ -13,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
os: [macos-latest]

steps:
- uses: actions/checkout@v3
Expand All @@ -32,14 +33,14 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_ALL: sh build.sh
CIBW_ENVIRONMENT: LIBGIT2_VERSION=1.7.1 LIBSSH2_VERSION=1.11.0 OPENSSL_VERSION=3.0.9 LIBGIT2=/project/ci
CIBW_ENVIRONMENT_MACOS: LIBGIT2_VERSION=1.7.1 LIBSSH2_VERSION=1.11.0 OPENSSL_VERSION=3.0.9 DYLD_LIBRARY_PATH=/usr/local/lib
CIBW_SKIP: "*-musllinux* *pypy*"
CIBW_ENVIRONMENT: LIBGIT2_VERSION=1.7.1 LIBSSH2_VERSION=1.11.0 OPENSSL_VERSION=3.0.10 LIBGIT2=/project/ci
CIBW_ENVIRONMENT_MACOS: LIBGIT2_VERSION=1.7.1 LIBSSH2_VERSION=1.11.0 OPENSSL_VERSION=3.0.10 LIBGIT2=/Users/runner/work/pygit2/pygit2/ci
CIBW_SKIP: "*musl* pp3* cp312*"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "LD_LIBRARY_PATH=/project/ci/lib64 auditwheel repair -w {dest_dir} {wheel}"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "DYLD_LIBRARY_PATH=/usr/local/lib delocate-listdeps {wheel} && DYLD_LIBRARY_PATH=/usr/local/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
CIBW_ARCHS_MACOS: x86_64 universal2
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_LINUX: x86_64 aarch64

- uses: actions/upload-artifact@v3
Expand Down
16 changes: 10 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ if [ -n "$LIBGIT2_VERSION" ]; then
-DOPENSSL_CRYPTO_LIBRARY="../openssl-universal/$LIBCRYPTO" \
-DOPENSSL_SSL_LIBRARY="../openssl-universal/$LIBSSL" \
-DOPENSSL_INCLUDE_DIR="../openssl-x86/include" \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DUSE_SSH=$USE_SSH
else
export CFLAGS=-I$PREFIX/include
Expand All @@ -211,12 +212,15 @@ fi

if [ "$CIBUILDWHEEL" = "1" ]; then
if [ "$KERNEL" = "Darwin" ]; then
# Copy libraries where delocate-wheel can find them.
# In Linux we use LD_LIBRARY_PATH to avoid this, maybe
# DYLD_LIBRARY_PATH would work for macOS.
cp -r $OPENSSL_PREFIX/*.dylib /usr/local/lib
cp -r $LIBSSH2_PREFIX/lib/*.dylib /usr/local/lib
cp -r $FILENAME/build/*.dylib /usr/local/lib
cp $OPENSSL_PREFIX/*.dylib $PREFIX/lib/
echo DEBUG
echo "PREFIX " $PREFIX
echo "PREFIX/lib " $PREFIX/lib
echo "OPENSSL_PREFIX" $OPENSSL_PREFIX
echo DEBUG
ls -l /Users/runner/work/pygit2/pygit2/ci/
ls -l $OPENSSL_PREFIX
ls -l $PREFIX/lib
fi
# we're done building dependencies, cibuildwheel action will take over
exit 0
Expand Down

0 comments on commit 64c939d

Please sign in to comment.