Skip to content

Commit ac873ef

Browse files
authored
Merge pull request #132 from certik/macos
Fix tests on macOS
2 parents 4b2f8bc + 62fc3df commit ac873ef

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,21 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v1
2929

30-
- name: Install Haskell Linux / macOS
31-
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
30+
- name: Install GFortran macOS
31+
if: contains(matrix.os, 'macos')
32+
run: |
33+
ln -s /usr/local/bin/gfortran-${GCC_V} /usr/local/bin/gfortran
34+
which gfortran-${GCC_V}
35+
which gfortran
36+
37+
- name: Install Haskell macOS
38+
if: contains(matrix.os, 'macos')
39+
run: |
40+
mkdir /Users/runner/.local/bin
41+
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
42+
43+
- name: Install Haskell Linux
44+
if: contains(matrix.os, 'ubuntu')
3245
uses: mstksg/setup-stack@v1
3346

3447
- name: Install Haskell Windows

0 commit comments

Comments
 (0)