diff options
author | Dave Nicolson | 2023-11-24 19:52:49 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-12-16 00:31:38 +0100 |
commit | 8819a300a0060229f9db1dda663d4e4b2b80b8e0 (patch) | |
tree | bd0386a439a80a3b193e83fcd5c74bc08250fc20 /.github/workflows | |
parent | 545202420f27f0558c4a183f17ea06c46a397de9 (diff) | |
download | libimobiledevice-8819a300a0060229f9db1dda663d4e4b2b80b8e0.tar.gz libimobiledevice-8819a300a0060229f9db1dda663d4e4b2b80b8e0.tar.bz2 |
Fix GitHub Action for Cython on macOS
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b13cfc1..d054366 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: else brew install libtool autoconf automake pkgconfig fi - pip install cython + pip3 install cython==0.29.24 shell: bash - name: fetch libplist uses: dawidd6/action-download-artifact@v2 @@ -133,6 +133,16 @@ jobs: done export CFLAGS="$USEARCHS -isysroot $SDKDIR" echo "Using CFLAGS: $CFLAGS" + PYTHON3_BIN=`xcrun -f python3` + if test -x $PYTHON3_BIN; then + export PYTHON=$PYTHON3_BIN + PYTHON_VER=`$PYTHON3_BIN -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'))"` + PYTHON_EXEC_PREFIX=`$PYTHON3_BIN -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('exec_prefix'))"` + PYTHON_LIBS_PATH=$PYTHON_EXEC_PREFIX/lib + PYTHON_FRAMEWORK_PATH=$PYTHON_EXEC_PREFIX/Python3 + export PYTHON_LIBS="-L$PYTHON_LIBS_PATH -lpython$PYTHON_VER" + export PYTHON_EXTRA_LDFLAGS="-Wl,-stack_size,1000000 -framework CoreFoundation $PYTHON_FRAMEWORK_PATH" + fi ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig --enable-debug \ openssl_CFLAGS="-I${{ env.DEPSDIR }}/libressl-${{ env.LIBRESSL_VER }}/include" \ openssl_LIBS="-Xlinker ${{ env.LIBSSL }} -Xlinker ${{ env.LIBCRYPTO }}" |