Skip to content

Commit 95919c6

Browse files
committed
Build zlib
1 parent 3d1b91b commit 95919c6

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/binary-build.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,36 @@ jobs:
3030
if: matrix.os == 'macos-13'
3131
run: |
3232
HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake
33-
HOMEBREW_NO_AUTO_UPDATE=1 brew install zlib
3433
wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
3534
tar xf gmp-6.3.0.tar.xz
3635
cd gmp-6.3.0
3736
./configure --enable-static -enable-cxx --enable-shared
3837
make -j8
3938
sudo make install
4039
cd ..
41-
40+
41+
- name: Install zlib for Mac dynamic
42+
if: matrix.os == 'macos-14' && matrix.staticcompile == 'OFF'
43+
run: |
44+
wget https://www.zlib.net/zlib-1.3.1.tar.gz
45+
tar xzvf zlib-1.3.1.tar.gz
46+
cd zlib-1.3.1
47+
./configure
48+
make -j8
49+
sudo make install
50+
cd ..
51+
52+
- name: Install zlib for Mac static
53+
if: matrix.os == 'macos-14' && matrix.staticcompile == 'ON'
54+
run: |
55+
wget https://www.zlib.net/zlib-1.3.1.tar.gz
56+
tar xzvf zlib-1.3.1.tar.gz
57+
cd zlib-1.3.1
58+
./configure --static
59+
make -j8
60+
sudo make install
61+
cd ..
62+
4263
- name: Installing Numpy
4364
run: |
4465
pip install pip --upgrade

0 commit comments

Comments
 (0)