From fd656455751625b4a266cbc9ba2649a841921d28 Mon Sep 17 00:00:00 2001 From: David Hewson Date: Tue, 16 Jul 2024 13:54:19 +0100 Subject: [PATCH 1/3] install stack of macos as it is no longer included ghc 8 not happy no macos-latest nightly (seemingly there to target 9.0) replaced with higher lts versions --- .github/workflows/tests.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4110d9554..466e47ff5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,15 +15,15 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] args: - #- "--resolver nightly" - - "--resolver nightly-2022-02-11" + - "--resolver lts-22" + - "--resolver lts-20" - "--resolver lts-18" - "--resolver lts-16" - "--resolver lts-14" - # Bugs in GHC make it crash too often to be worth running exclude: - - os: windows-latest - args: "--resolver nightly" + # llvm too new on macos-latest for ghc 8 + - os: macos-latest + args: "--resolver lts-18" - os: macos-latest args: "--resolver lts-16" - os: macos-latest @@ -42,6 +42,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: | From 55723e6fb739802265fd10cf19346c1195465bdf Mon Sep 17 00:00:00 2001 From: David Hewson Date: Tue, 16 Jul 2024 14:48:22 +0100 Subject: [PATCH 2/3] update checkout version --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 466e47ff5..ec5ed2015 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Clone project - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Getting weird OS X errors... # - name: Cache dependencies From 8bfbc9487c3fd00fc47adf79441deeaa2f4f7115 Mon Sep 17 00:00:00 2001 From: David Hewson Date: Tue, 16 Jul 2024 16:43:13 +0100 Subject: [PATCH 3/3] no long test on lts-14 https://github.com/yesodweb/yesod/pull/1838 will drop support for ghc 8.6 --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec5ed2015..23aba5935 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,15 +19,12 @@ jobs: - "--resolver lts-20" - "--resolver lts-18" - "--resolver lts-16" - - "--resolver lts-14" exclude: # llvm too new on macos-latest for ghc 8 - os: macos-latest args: "--resolver lts-18" - os: macos-latest args: "--resolver lts-16" - - os: macos-latest - args: "--resolver lts-14" steps: - name: Clone project