66 - v*
77
88env :
9- LIBZIM_VERSION : 7.2.2
9+ LIBZIM_VERSION : 8.0.0
1010 LIBZIM_INCLUDE_PATH : include/zim
1111 TWINE_USERNAME : __token__
1212 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
@@ -19,20 +19,20 @@ jobs:
1919 runs-on : ${{ matrix.os }}
2020 strategy :
2121 matrix :
22- os : [ubuntu-20.04, macos-10.15 ]
23- python-version : ["3.6", "3.7", "3.8", "3.9", "3.10"]
22+ os : [ubuntu-20.04, macos-12 ]
23+ python-version : ["3.6.15 ", "3.7", "3.8", "3.9", "3.10"]
2424
2525 steps :
2626 - uses : actions/checkout@v2
2727
2828 - name : Set up Python ${{ matrix.python-version }}
29- uses : actions/setup-python@v1
29+ uses : actions/setup-python@v4.2.0
3030 with :
3131 python-version : ${{ matrix.python-version }}
3232 architecture : x64
3333
3434 - name : set macOS environ
35- if : matrix.os == 'macos-10.15 '
35+ if : matrix.os == 'macos-12 '
3636 run : |
3737 echo LIBZIM_EXT=dylib >> $GITHUB_ENV
3838 echo LIBZIM_RELEASE=libzim_macos-x86_64-$LIBZIM_VERSION >> $GITHUB_ENV
4141 echo RPATH=@loader_path/ >> $GITHUB_ENV
4242
4343 - name : install Apple certificate
44- if : matrix.os == 'macos-10.15 '
44+ if : matrix.os == 'macos-12 '
4545 shell : bash
4646 env :
4747 CERTIFICATE : /tmp/wmch-devid.p12
@@ -86,33 +86,33 @@ jobs:
8686 if : matrix.os == 'ubuntu-20.04'
8787 run : |
8888 cp -dp $GITHUB_WORKSPACE/libzim_dist/lib/x86_64-linux-gnu/* lib/
89- ln -s libzim.so.${LIBZIM_VERSION:0:1} lib/libzim.so
90- ln -s $GITHUB_WORKSPACE/libzim_dist/$LIBZIM_INCLUDE_PATH include/zim
89+ ln -sf libzim.so.${LIBZIM_VERSION:0:1} lib/libzim.so
90+ ln -sf $GITHUB_WORKSPACE/libzim_dist/$LIBZIM_INCLUDE_PATH include/zim
9191
9292 - name : Link macOS libzim dylib & headers into workspace lib and include folders
93- if : matrix.os == 'macos-10.15 '
93+ if : matrix.os == 'macos-12 '
9494 run : |
9595 cp -Pp $GITHUB_WORKSPACE/libzim_dist/lib/* lib/
9696 ln -sf libzim.${LIBZIM_VERSION:0:1}.dylib lib/libzim.dylib
97- ln -s $GITHUB_WORKSPACE/libzim_dist/$LIBZIM_INCLUDE_PATH include/zim
97+ ln -sf $GITHUB_WORKSPACE/libzim_dist/$LIBZIM_INCLUDE_PATH include/zim
9898
9999 - name : Build cython and sdist
100100 run : |
101- pip install --upgrade "cython>=0.29.30 ,<3.0" setuptools pip wheel
101+ pip install --upgrade "cython>=0.29.32 ,<3.0" setuptools pip wheel
102102 python3 setup.py build_ext --rpath $RPATH
103103 if [[ "${{ matrix.python-version }}" == "3.8" ]]
104104 then
105105 python3 setup.py sdist
106106 fi
107107
108108 - name : add macOS libzim binary to source for wheel
109- if : matrix.os == 'macos-10.15 '
109+ if : matrix.os == 'macos-12 '
110110 run : |
111111 install_name_tool -change libzim.${LIBZIM_VERSION:0:1}.dylib @loader_path/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build -name "libzim.cpython*.so")
112112 cp -pv lib/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build/lib* -type d)/
113113
114114 - name : sign macOS wrapper binary
115- if : matrix.os == 'macos-10.15 '
115+ if : matrix.os == 'macos-12 '
116116 run : |
117117 echo "make sure libzim is signed and notarized"
118118 spctl -a -v -t install lib/libzim.${LIBZIM_VERSION:0:1}.dylib
0 commit comments