Skip to content

Commit

Permalink
Merge pull request #93 from cdiener/fix/gmp_download
Browse files Browse the repository at this point in the history
Fix GMP building
  • Loading branch information
Midnighter authored Nov 6, 2023
2 parents a6936c2 + 10895e0 commit 568083b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
echo "::set-output name=swigplk_version::$(python scripts/find_swiglpk_version.py)"
- name: Build wheels
uses: joerick/[email protected].1
uses: joerick/[email protected].2
env:
NEW_GLPK_VERSION: ${{ steps.version.outputs.glpk_version }}
GLPK_HEADER_PATH: glpk-${{ steps.version.outputs.glpk_version }}/src
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'

- name: Get GLPK version
id: version
Expand Down
4 changes: 2 additions & 2 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function pre_build {
# Runs in the root directory of this repository.
ADD_CFLAGS=""
ADD_CONFIG_FLAGS=""
GMP_VERSION="6.2.1" # hasn't changed in 2 years
GMP_VERSION="6.3.0"
if [ -n "$IS_OSX" ]; then
export CC=clang
export CXX=clang++
Expand All @@ -24,7 +24,7 @@ function pre_build {
export CFLAGS="-I/usr/local/include $ADD_CFLAGS $CFLAGS"
export LDFLAGS="-L/usr/local/lib $ARCHFLAGS"
echo "Downloading GMP"
curl -O https://gmplib.org/download/gmp/gmp-$GMP_VERSION.tar.lz
curl -O ftp://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.lz
tar xzf gmp-$GMP_VERSION.tar.lz
(cd gmp-$GMP_VERSION \
&& ./configure --prefix=$BUILD_PREFIX $ADD_CONFIG_FLAGS \
Expand Down

0 comments on commit 568083b

Please sign in to comment.