Skip to content

Commit 6db46ea

Browse files
committed
use macos-10.15 image in release workflow as latest doesnt include py3.6 anymore
1 parent 8f5b4e4 commit 6db46ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ubuntu-latest, macos-latest]
22+
os: [ubuntu-latest, macos-10.15]
2323
# TODO: expand this to cross-platform builds (see V2 approach below)
24-
# os: [ubuntu-latest, windows-latest, macos-latest]
24+
# os: [ubuntu-latest, windows-latest, macos-10.15]
2525
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
2626

2727
steps:
@@ -34,7 +34,7 @@ jobs:
3434
architecture: x64
3535

3636
- name: set macOS environ
37-
if: matrix.os == 'macos-latest'
37+
if: matrix.os == 'macos-10.15'
3838
run: |
3939
echo LIBZIM_EXT=dylib >> $GITHUB_ENV
4040
echo LIBZIM_RELEASE=libzim_macos-x86_64-$LIBZIM_VERSION >> $GITHUB_ENV
@@ -43,7 +43,7 @@ jobs:
4343
echo RPATH=@loader_path/ >> $GITHUB_ENV
4444
4545
- name: install Apple certificate
46-
if: matrix.os == 'macos-latest'
46+
if: matrix.os == 'macos-10.15'
4747
shell: bash
4848
env:
4949
CERTIFICATE: /tmp/wmch-devid.p12
@@ -92,7 +92,7 @@ jobs:
9292
ln -s $GITHUB_WORKSPACE/libzim_dist/$LIBZIM_INCLUDE_PATH include/zim
9393
9494
- name: Link macOS libzim dylib & headers into workspace lib and include folders
95-
if: matrix.os == 'macos-latest'
95+
if: matrix.os == 'macos-10.15'
9696
run: |
9797
cp -Pp $GITHUB_WORKSPACE/libzim_dist/lib/* lib/
9898
ln -sf libzim.${LIBZIM_VERSION:0:1}.dylib lib/libzim.dylib
@@ -108,13 +108,13 @@ jobs:
108108
fi
109109
110110
- name: add macOS libzim binary to source for wheel
111-
if: matrix.os == 'macos-latest'
111+
if: matrix.os == 'macos-10.15'
112112
run: |
113113
install_name_tool -change libzim.${LIBZIM_VERSION:0:1}.dylib @loader_path/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build -name "libzim.cpython*.so")
114114
cp -pv lib/libzim.${LIBZIM_VERSION:0:1}.dylib $(find build/lib* -type d)/
115115
116116
- name: sign macOS wrapper binary
117-
if: matrix.os == 'macos-latest'
117+
if: matrix.os == 'macos-10.15'
118118
run: |
119119
echo "make sure libzim is signed and notarized"
120120
spctl -a -v -t install lib/libzim.${LIBZIM_VERSION:0:1}.dylib

0 commit comments

Comments
 (0)