From a1bc442e785b10fdcc29a05da5a13fde0272ce20 Mon Sep 17 00:00:00 2001 From: David Hewson Date: Tue, 16 Jul 2024 13:54:19 +0100 Subject: [PATCH] install stack of macos as it is no longer included ghc 8 not happy no macos-latest --- .github/workflows/tests.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4110d9554..8f6f8fa7c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,6 +17,8 @@ jobs: args: #- "--resolver nightly" - "--resolver nightly-2022-02-11" + - "--resolver lts-22" + - "--resolver lts-20" - "--resolver lts-18" - "--resolver lts-16" - "--resolver lts-14" @@ -24,6 +26,8 @@ jobs: exclude: - os: windows-latest args: "--resolver nightly" + - os: macos-latest + args: "--resolver lts-18" - os: macos-latest args: "--resolver lts-16" - os: macos-latest @@ -42,6 +46,16 @@ jobs: # restore-keys: | # ${{ runner.os }}-${{ matrix.resolver }}- + - name: Install stack if needed + shell: bash + run: | + set -ex + if [[ "${{ matrix.os }}" == "macos-latest" ]] + then + # macos-latest does not include Haskell tools as of 2024-05-06. + curl -sSL https://get.haskellstack.org/ | sh + fi + - name: Build and run tests shell: bash run: |