Skip to content

Commit c3712f0

Browse files
committed
Support multiple setup methods
1 parent dcf79f9 commit c3712f0

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/HaskellCI/Compiler.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ knownGhcVersions = fmap mkVersion
140140
, [9,2,1], [9,2,2], [9,2,3], [9,2,4], [9,2,5], [9,2,6], [9,2,7], [9,2,8]
141141
, [9,4,1], [9,4,2], [9,4,3], [9,4,4], [9,4,5], [9,4,6], [9,4,7], [9,4,8]
142142
, [9,6,1], [9,6,2], [9,6,3], [9,6,4], [9,6,5], [9,6,6]
143-
, [9,8,1], [9,8,2]
143+
, [9,8,1], [9,8,2], [9,8,3]
144144
, [9,10,1]
145145
, [9,12,1]
146146
]

src/HaskellCI/Config/Grammar.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,14 @@ configGrammar = Config
138138
^^^ metahelp "RANGE" "Jobs to additionally build with OSX"
139139
<*> booleanFieldDef "ghcup-cabal" (field @"cfgGhcupCabal") defaultConfig
140140
^^^ help "Use (or don't) ghcup to install cabal"
141+
<*> rangeField "hvr-ppa-jobs" (field @"cfgHvrPaaJobs") defaultConfig
142+
^^^ metahelp "RANGE" "(Linux) jobs to use hvr-ppa to install ghc"
141143
<*> rangeField "ghcup-jobs" (field @"cfgGhcupJobs") defaultConfig
142-
^^^ metahelp "RANGE" "(Linux) jobs to use ghcup to install tools"
144+
^^^ metahelp "RANGE" "(Linux) jobs to use ghcup to install ghc"
145+
<*> rangeField "ghcup-vanilla-jobs" (field @"cfgGhcupVanillaJobs") defaultConfig
146+
^^^ metahelp "RANGE" "(Linux) jobs to use ghcup-vanilla to install ghc"
147+
<*> rangeField "ghcup-prerelease-jobs" (field @"cfgGhcupPrereleaseJobs") defaultConfig
148+
^^^ metahelp "RANGE" "(Linux) jobs to use ghcup-prerelease to install ghc"
143149
<*> optionalFieldDef "ghcup-version" (field @"cfgGhcupVersion") defaultConfig
144150
^^^ metahelp "VERSION" "ghcup version"
145151
<*> monoidalFieldAla "apt" (alaSet' C.NoCommaFSep C.Token') (field @"cfgApt")

src/HaskellCI/Config/Initial.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ initialConfig = Config
6161
, cfgLinuxJobs = anyVersion
6262
, cfgMacosJobs = noVersion
6363
, cfgGhcupCabal = True
64+
, cfgHvrPpaJobs = noVersion
6465
, cfgGhcupJobs = C.unionVersionRanges (C.intersectVersionRanges (C.laterVersion (mkVersion [8,10,4])) (C.earlierVersion (mkVersion [9]))) (C.laterVersion (mkVersion [9,0,1]))
66+
, cfgGhcupVanillaJobs = noVersion -- TODO -- include GHC-9.8.3
67+
, cfgGhcupPrereleaseJobs = C.orLaterVersion (mkVersion ([9,11,0]))
6568
, cfgGhcupVersion = initialGhcupVersion
6669
, cfgApt = mempty
6770
, cfgTravisPatches = []

src/HaskellCI/Config/Type.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ data Config = Config
6666
, cfgLinuxJobs :: !VersionRange
6767
, cfgMacosJobs :: !VersionRange
6868
, cfgGhcupCabal :: !Bool
69+
, cfgHvrPpaJobs :: !VersionRange
6970
, cfgGhcupJobs :: !VersionRange
71+
, cfgGhcupVanillaJobs :: !VersionRange
72+
, cfgGhcupPrereleaseJobs :: !VersionRange
7073
, cfgGhcupVersion :: !Version
7174
, cfgApt :: S.Set String
7275
, cfgTravisPatches :: [FilePath]

0 commit comments

Comments
 (0)