From 14f80d11aa54f786926d4eb5e9b1f4fbdcaec9bf Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 11 Sep 2024 23:23:00 -0500 Subject: [PATCH] Try building gmp from source --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0d5712..84e360b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,9 +86,21 @@ jobs: - name: Install compiler tools on macOS if: runner.os == 'macOS' run: | - brew install make automake swig gmp mpfr boost + brew install make automake swig mpfr boost export PATH="/usr/local/opt/make/libexec/gnubin:$PATH" + - name: Build gmp from source for macOS cibuildwheel + if: runner.os == 'macOS' + run: | + curl -sLO https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz + tar -xf gmp-6.3.0.tar.xz + cd gmp-6.3.0 + ./configure --prefix=$(brew --prefix) + make --jobs + make install + cd .. + rm -rf gmp-6.3.0 gmp-6.3.0.tar.xz + - uses: pypa/cibuildwheel@v2.20.0 env: CIBW_ARCHS: ${{ matrix.arch }}