diff options
author | 2023-11-24 19:52:49 +0100 | |
---|---|---|
committer | 2023-12-16 00:31:38 +0100 | |
commit | 8819a300a0060229f9db1dda663d4e4b2b80b8e0 (patch) | |
tree | bd0386a439a80a3b193e83fcd5c74bc08250fc20 | |
parent | 545202420f27f0558c4a183f17ea06c46a397de9 (diff) | |
download | libimobiledevice-8819a300a0060229f9db1dda663d4e4b2b80b8e0.tar.gz libimobiledevice-8819a300a0060229f9db1dda663d4e4b2b80b8e0.tar.bz2 |
Fix GitHub Action for Cython on macOS
-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: | |||
74 | else | 74 | else |
75 | brew install libtool autoconf automake pkgconfig | 75 | brew install libtool autoconf automake pkgconfig |
76 | fi | 76 | fi |
77 | pip install cython | 77 | pip3 install cython==0.29.24 |
78 | shell: bash | 78 | shell: bash |
79 | - name: fetch libplist | 79 | - name: fetch libplist |
80 | uses: dawidd6/action-download-artifact@v2 | 80 | uses: dawidd6/action-download-artifact@v2 |
@@ -133,6 +133,16 @@ jobs: | |||
133 | done | 133 | done |
134 | export CFLAGS="$USEARCHS -isysroot $SDKDIR" | 134 | export CFLAGS="$USEARCHS -isysroot $SDKDIR" |
135 | echo "Using CFLAGS: $CFLAGS" | 135 | echo "Using CFLAGS: $CFLAGS" |
136 | PYTHON3_BIN=`xcrun -f python3` | ||
137 | if test -x $PYTHON3_BIN; then | ||
138 | export PYTHON=$PYTHON3_BIN | ||
139 | PYTHON_VER=`$PYTHON3_BIN -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'))"` | ||
140 | PYTHON_EXEC_PREFIX=`$PYTHON3_BIN -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('exec_prefix'))"` | ||
141 | PYTHON_LIBS_PATH=$PYTHON_EXEC_PREFIX/lib | ||
142 | PYTHON_FRAMEWORK_PATH=$PYTHON_EXEC_PREFIX/Python3 | ||
143 | export PYTHON_LIBS="-L$PYTHON_LIBS_PATH -lpython$PYTHON_VER" | ||
144 | export PYTHON_EXTRA_LDFLAGS="-Wl,-stack_size,1000000 -framework CoreFoundation $PYTHON_FRAMEWORK_PATH" | ||
145 | fi | ||
136 | ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig --enable-debug \ | 146 | ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig --enable-debug \ |
137 | openssl_CFLAGS="-I${{ env.DEPSDIR }}/libressl-${{ env.LIBRESSL_VER }}/include" \ | 147 | openssl_CFLAGS="-I${{ env.DEPSDIR }}/libressl-${{ env.LIBRESSL_VER }}/include" \ |
138 | openssl_LIBS="-Xlinker ${{ env.LIBSSL }} -Xlinker ${{ env.LIBCRYPTO }}" | 148 | openssl_LIBS="-Xlinker ${{ env.LIBSSL }} -Xlinker ${{ env.LIBCRYPTO }}" |