Skip to content

Commit

Permalink
ci: Fix quick-jobs GHC version to 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-romes authored and ulysses4ever committed May 16, 2024
1 parent 03d9829 commit 67453b8
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/quick-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
types:
- created

env:
GHC_FOR_QUICK_JOBS: 9.6.5

jobs:
meta:
name: Meta checks
Expand All @@ -25,15 +28,13 @@ jobs:
gen-paths-module
gen-spdx
gen-spdx-exc
# This job is not run in a container, any recent GHC should be fine
steps:
# SKIP installation of ghc and cabal and use the preinstalled versions.
# - name: ghcup
# run: |
# ghcup --version
# ghcup config set cache true
# ghcup install ghc recommended
# ghcup set ghc recommended
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
Expand Down Expand Up @@ -71,6 +72,16 @@ jobs:
name: Doctest Cabal
runs-on: ubuntu-latest
steps:
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
# It is complicated to get a proper cache key for the dependencies of a package
# (here: doctest) that we just `cabal install`.
# So, as a heuristics we update the cache once per day.
Expand Down Expand Up @@ -106,6 +117,16 @@ jobs:
env:
cabal_build: cabal build buildinfo-reference-generator
steps:
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v4
Expand Down Expand Up @@ -133,6 +154,16 @@ jobs:
name: Check Release Project
runs-on: ubuntu-latest
steps:
- name: ghcup
run: |
ghcup --version
ghcup config set cache true
ghcup install ghc $GHC_FOR_QUICK_JOBS
ghcup set ghc $GHC_FOR_QUICK_JOBS
- name: Haskell versions
run: |
ghc --version
cabal --version
- name: Update Hackage Index
run: cabal v2-update
- uses: actions/checkout@v4
Expand Down

0 comments on commit 67453b8

Please sign in to comment.