1919 runs-on : ${{ matrix.os }}
2020 strategy :
2121 matrix :
22- os : [ubuntu-latest, macos-10.15]
23- # TODO: expand this to cross-platform builds (see V2 approach below)
24- # os: [ubuntu-latest, windows-latest, macos-10.15]
22+ os : [ubuntu-20.04, macos-10.15]
2523 python-version : ["3.6", "3.7", "3.8", "3.9", "3.10"]
2624
2725 steps :
6260 -p "${{ secrets.APPLE_SIGNING_ALTOOL_PASSWORD }}"
6361
6462 - name : set linux environ
65- if : matrix.os == 'ubuntu-latest '
63+ if : matrix.os == 'ubuntu-20.04 '
6664 run : |
6765 echo LIBZIM_EXT=so >> $GITHUB_ENV
6866 echo LIBZIM_RELEASE=libzim_linux-x86_64-$LIBZIM_VERSION >> $GITHUB_ENV
8583 mv $LIBZIM_RELEASE libzim_dist
8684
8785 - name : Link Linux libzim dylib & headers into workspace lib and include folders
88- if : matrix.os == 'ubuntu-latest '
86+ if : matrix.os == 'ubuntu-20.04 '
8987 run : |
9088 cp -dp $GITHUB_WORKSPACE/libzim_dist/lib/x86_64-linux-gnu/* lib/
9189 ln -s libzim.so.${LIBZIM_VERSION:0:1} lib/libzim.so
10098
10199 - name : Build cython and sdist
102100 run : |
103- pip install --upgrade "cython>=0.29.28 ,<3.0" setuptools pip wheel
101+ pip install --upgrade "cython>=0.29.30 ,<3.0" setuptools pip wheel
104102 python3 setup.py build_ext --rpath $RPATH
105- if [[ "${{ matrix.python-version }}" == "3.6 " ]]
103+ if [[ "${{ matrix.python-version }}" == "3.8 " ]]
106104 then
107105 python3 setup.py sdist
108106 fi
@@ -136,7 +134,7 @@ jobs:
136134 spctl -a -v -t install ${wrapper} || true
137135
138136 - name : add Linux libzim binary to source for wheel
139- if : matrix.os == 'ubuntu-latest '
137+ if : matrix.os == 'ubuntu-20.04 '
140138 run : cp -pv lib/libzim.so.${LIBZIM_VERSION:0:1} $(find build/lib* -type d)/
141139
142140 - name : build wheel
@@ -152,7 +150,7 @@ jobs:
152150 run : |
153151 pip install --upgrade twine
154152 twine check dist/*
155- if [ "${{ matrix.os }}" == "ubuntu-latest " -a "${{ matrix.python-version }}" = "3.6 " ]
153+ if [ "${{ matrix.os }}" == "ubuntu-20.04 " -a "${{ matrix.python-version }}" = "3.8 " ]
156154 then
157155 twine upload dist/*.tar.gz
158156 fi
0 commit comments