diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0d57128..84e360bb 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 }}