Skip to content

Commit

Permalink
Use packaged version of mpfr
Browse files Browse the repository at this point in the history
Now that 4.2.1 is the default version
  • Loading branch information
thvnx committed Sep 6, 2024
1 parent 355fb1b commit d8d4d10
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
main:
strategy:
matrix:
platform: [ubuntu-latest] # macos-latest
os: [ubuntu-latest, macos-latest]
ocaml-compiler: [4.12.1, 4.14.0, 5.0.0, 5.1.1, 5.2.0]
runs-on: ${{ matrix.platform }}
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
Expand All @@ -23,16 +23,12 @@ jobs:
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Build mpfr from sources
- if: matrix.os == 'ubuntu-latest'
run: |
wget --no-check-certificate https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.gz
tar xvzf mpfr-4.2.1.tar.gz
mkdir build-mpfr
pushd build-mpfr
../mpfr-4.2.1/configure
make -j8
sudo make install
popd
apt install libmpfr-dev
- if: matrix.os == 'macos-latest'
run: |
brew install mpfr
- name: Build and test mlmpfr
run: |
Expand Down

0 comments on commit d8d4d10

Please sign in to comment.