Skip to content

Commit 1fbf549

Browse files
committed
More tweaks
1 parent 96b0868 commit 1fbf549

File tree

4 files changed

+12
-17
lines changed

4 files changed

+12
-17
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ jobs:
3535
compilerVersion: 9.10.1
3636
setup-method: ghcup
3737
allow-failure: false
38-
- compiler: ghc-9.8.3
39-
compilerKind: ghc
40-
compilerVersion: 9.8.3
41-
setup-method: ghcup
42-
allow-failure: false
4338
- compiler: ghc-9.8.3
4439
compilerKind: ghc
4540
compilerVersion: 9.8.3
@@ -186,7 +181,7 @@ jobs:
186181
- name: cache (tools)
187182
uses: actions/cache/restore@v4
188183
with:
189-
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-4fd5cdc7
184+
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-c0a7f8fa
190185
path: ~/.haskell-ci-tools
191186
- name: install cabal-plan
192187
run: |
@@ -214,7 +209,7 @@ jobs:
214209
if: always()
215210
uses: actions/cache/save@v4
216211
with:
217-
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-4fd5cdc7
212+
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-c0a7f8fa
218213
path: ~/.haskell-ci-tools
219214
- name: checkout
220215
uses: actions/checkout@v4

src/HaskellCI/Config.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ parseConfigFile fields0 = do
6262

6363
postprocessConfig :: Config -> Config
6464
postprocessConfig cfg
65-
-- on yammy the only install option is ghcup
66-
| cfgUbuntu cfg >= Jammy = cfg { cfgGhcupJobs = anyVersion }
65+
| cfgUbuntu cfg >= Jammy = cfg
6766
| otherwise = cfg
6867

6968
-------------------------------------------------------------------------------

src/HaskellCI/Config/History.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ import HaskellCI.Config.Ubuntu
1616
import HaskellCI.Compiler (invertVersionRange)
1717

1818
ghcupNormalRange :: VersionRange
19-
ghcupNormalRange = C.unionVersionRanges
20-
(C.intersectVersionRanges (C.laterVersion (mkVersion [8,10,4])) (C.earlierVersion (mkVersion [9])))
21-
(C.laterVersion (mkVersion [9,0,1]))
19+
ghcupNormalRange = C.laterVersion (mkVersion [8,4,4])
2220

2321
configHistory :: [([Int], Config -> Config)]
2422
configHistory =
@@ -36,7 +34,8 @@ configHistory =
3634
, ver 0 19 20240708 := \cfg -> cfg
3735
& field @"cfgGhcupVersion" .~ C.mkVersion [0,1,30,0]
3836
, ver 0 19 20241111 := \cfg -> cfg
39-
& field @"cfgGhcupJobs" .~ C.intersectVersionRanges (C.intersectVersionRanges ghcupNormalRange (C.earlierVersion (C.mkVersion [9,12,0]))) (invertVersionRange (C.withinVersion (C.mkVersion [9,8,3])))
37+
& field @"cfgHvrPpaJobs" .~ C.earlierVersion (C.mkVersion [8,4])
38+
& field @"cfgGhcupJobs" .~ C.simplifyVersionRange (C.intersectVersionRanges (C.intersectVersionRanges ghcupNormalRange (C.earlierVersion (C.mkVersion [9,12,0]))) (invertVersionRange (C.withinVersion (C.mkVersion [9,8,3]))))
4039
& field @"cfgGhcupVanillaJobs" .~ C.withinVersion (C.mkVersion [9,8,3])
4140
& field @"cfgGhcupPrereleaseJobs" .~ C.orLaterVersion (C.mkVersion [9,12,0])
4241
]

src/HaskellCI/GitHub.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ makeGitHub _argv config@Config {..} gitconfig prj jobs@JobVersions {..} = do
529529
[ Map.singleton "postgres" postgresService | cfgPostgres ]
530530
, ghjTimeout = max 10 cfgTimeoutMinutes
531531
, ghjMatrix = concat $
532+
-- we can have multiple setup methods for the same
533+
-- compiler version, if jobs overlap.
532534
[ [ GitHubMatrixEntry
533535
{ ghmeCompiler = translateCompilerVersion $ compiler
534536
, ghmeAllowFailure =
@@ -542,11 +544,11 @@ makeGitHub _argv config@Config {..} gitconfig prj jobs@JobVersions {..} = do
542544
GHCUPvanilla -> cfgGhcupVanillaJobs
543545
GHCUPprerelease -> cfgGhcupPrereleaseJobs
544546
HVRPPA -> cfgHvrPpaJobs
545-
]
546-
| compiler <- reverse $ toList linuxVersions
547-
, compiler /= GHCHead -- TODO: Make this work
547+
]
548+
| compiler <- reverse $ toList linuxVersions
549+
, compiler /= GHCHead -- TODO: Make this work
548550
-- https://github.com/haskell-CI/haskell-ci/issues/458
549-
]
551+
]
550552
})
551553

552554
unless (null cfgIrcChannels) $

0 commit comments

Comments
 (0)