Skip to content

Commit

Permalink
Stack CI: need to install Stack now on windows/macos
Browse files Browse the repository at this point in the history
Also drop GHC 8.2 (not supported by stack)
  • Loading branch information
andreasabel committed Sep 20, 2024
1 parent 6d22fb8 commit 3c0469c
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
plan:
- resolver: 'nightly'
- resolver: 'lts'
- ghc: '9.6.3'
resolver: 'lts-22.4'
- ghc: '9.6.6'
resolver: 'lts-22.34'
- ghc: '9.4.8'
resolver: 'lts-21.25'
- ghc: '9.2.8'
Expand All @@ -40,9 +40,9 @@ jobs:
resolver: 'lts-14.27'
- ghc: '8.4.4'
resolver: 'lts-12.26'
- ghc: '8.2.2'
resolver: 'lts-11.22'
# Older LTSs don't work with latest hslogger.
# It ends here, because:
# LTSs older than 11 don't work with latest hslogger.
# Stack dropped support for Cabal 2.0 (GHC 8.2)

include:
- os: windows-latest
Expand All @@ -61,15 +61,23 @@ jobs:

runs-on: ${{ matrix.os }}
env:
STACK: stack --no-terminal --resolver ${{ matrix.plan.resolver }}
STACK: stack --no-terminal --system-ghc --resolver ${{ matrix.plan.resolver }}

steps:
- uses: actions/checkout@v4

# 2024-09-20: On Windows and macOS, Stack is no longer preinstalled
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.plan.ghc }}
stack-version: latest
enable-stack: true
cabal-update: false

- name: Configure
run: $STACK init

- name: Install GHC via stack
- name: Install GHC via stack (or check that GHC is present)
run: $STACK ghc -- --version

- name: Haskell versions
Expand Down

0 comments on commit 3c0469c

Please sign in to comment.