diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-07-21 11:47:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 11:47:02 -0600 |
commit | ac873ef55037b554019a04ffc1f104d8d0a7b0f5 (patch) | |
tree | 29f747ee516a3c806866d34e9e2c093b92eff3de | |
parent | 4b2f8bca5b2289d18d5f0b6f7e17a0ccac428b47 (diff) | |
parent | 62fc3dff456068706b5980e61149802d7d143224 (diff) | |
download | fpm-ac873ef55037b554019a04ffc1f104d8d0a7b0f5.tar.gz fpm-ac873ef55037b554019a04ffc1f104d8d0a7b0f5.zip |
Merge pull request #132 from certik/macos
Fix tests on macOS
-rw-r--r-- | .github/workflows/CI.yml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 946caba..ca1ba03 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,8 +27,21 @@ jobs: - name: Checkout code uses: actions/checkout@v1 - - name: Install Haskell Linux / macOS - if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') + - name: Install GFortran macOS + if: contains(matrix.os, 'macos') + run: | + ln -s /usr/local/bin/gfortran-${GCC_V} /usr/local/bin/gfortran + which gfortran-${GCC_V} + which gfortran + + - name: Install Haskell macOS + if: contains(matrix.os, 'macos') + run: | + mkdir /Users/runner/.local/bin + curl -L https://gist.github.com/certik/0e35f35753ae76f0f575d9b3d3f53633/raw/4cde02cc9215635c9401c2257a46be319e7ab6dd/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C /Users/runner/.local/bin + + - name: Install Haskell Linux + if: contains(matrix.os, 'ubuntu') uses: mstksg/setup-stack@v1 - name: Install Haskell Windows |