From 0200fa4dfdf8cef264f2a1855dd3f69d86118a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 21 Jul 2020 09:28:38 -0600 Subject: Install Haskell on macOS --- .github/workflows/CI.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows/CI.yml') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 946caba..8437483 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,6 +27,11 @@ jobs: - name: Checkout code uses: actions/checkout@v1 + - name: Install Haskell Linux / macOS (manual) + if: contains(matrix.os, 'macos') + run: | + curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C /Users/runner/.local/bin + - name: Install Haskell Linux / macOS if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') uses: mstksg/setup-stack@v1 -- cgit v1.2.3 From 2c65363740608cba2715d83c72ac2465891f1043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 21 Jul 2020 09:35:45 -0600 Subject: Use a more stable url to download Haskell --- .github/workflows/CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows/CI.yml') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8437483..dfa386d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,13 +27,13 @@ jobs: - name: Checkout code uses: actions/checkout@v1 - - name: Install Haskell Linux / macOS (manual) + - name: Install Haskell macOS if: contains(matrix.os, 'macos') run: | - curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C /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 / macOS - if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') + - name: Install Haskell Linux + if: contains(matrix.os, 'ubuntu') uses: mstksg/setup-stack@v1 - name: Install Haskell Windows -- cgit v1.2.3 From 4129b6e8798a0999345d87a9d34d59cb060fc0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 21 Jul 2020 09:38:32 -0600 Subject: Create the missing `bin` directory --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github/workflows/CI.yml') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dfa386d..51101c4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,6 +30,7 @@ jobs: - 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 -- cgit v1.2.3 From 62fc3dff456068706b5980e61149802d7d143224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 21 Jul 2020 10:03:53 -0600 Subject: Install gfortran on macOS --- .github/workflows/CI.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.github/workflows/CI.yml') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 51101c4..ca1ba03 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,6 +27,13 @@ jobs: - name: Checkout code uses: actions/checkout@v1 + - 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: | -- cgit v1.2.3