Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: haskell/actions/setup@v1
- uses: haskell/actions/setup@v2
id: HaskEnvSetup
with:
ghc-version : ${{ inputs.ghc }}
Expand Down Expand Up @@ -74,7 +74,7 @@ runs:
# We have to restore package sources before `cabal update`
# because it overwrites the hackage index with the cached one
- name: Hackage sources cache
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: hackage-sources
with:
Expand All @@ -99,7 +99,7 @@ runs:

- name: Compiled deps cache
id: compiled-deps
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: compiled-deps
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: [ "9.2.4"
# This list of GHC versions must fit to the list of GHC versions
# specified in 'test.yml'
ghc: [ "9.4.2"
, "9.4.1"
, "9.2.4"
, "9.2.3"
, "9.0.2"
, "8.10.7"
Expand All @@ -89,6 +93,9 @@ jobs:
, "macOS-latest"
, "windows-latest"
]
exclude:
- os: windows-latest
ghc: '9.4.1'

steps:
- uses: actions/checkout@v3
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
# when you edit this list of GHC versions,
# **don't forget**
# to update the ghc versions in 'caching.yml'.
matrix:
ghc: [ "9.4.2"
, "9.4.1"
Expand All @@ -66,7 +69,15 @@ jobs:
]
os: [ "ubuntu-latest"
, "macOS-latest"
, "windows-latest"
]
# don't build these versions
# they are broken for good reasons, e.g. compiler is bugged
# on that platform.
exclude:
- os: windows-latest
ghc: '9.4.1'
# Mark which GHC versions on which platform we want to test.
include:
# only test supported ghc major versions
- os: ubuntu-latest
Expand All @@ -93,9 +104,6 @@ jobs:
- os: windows-latest
ghc: '8.10.7'
test: true
# only build rest of supported ghc versions for windows
- os: windows-latest
ghc: '9.2.3'

steps:
- uses: actions/checkout@v3
Expand All @@ -115,7 +123,7 @@ jobs:
run: |
echo "TEST_OPTS=-j1 --rerun-update --rerun-filter failures,exceptions" >> $GITHUB_ENV

- name: Cache test log bewteen attempts of the same run
- name: Cache test log between attempts of the same run
uses: actions/cache@v3
env:
cache-name: cache-test-log
Expand Down