@@ -609,7 +609,7 @@ makeGitHub _argv config@Config {..} gitconfig prj jobs@JobVersions {..} = do
609
609
{ ghjName = actionName ++ " - Linux - ${{ matrix.compiler }}"
610
610
-- NB: The Ubuntu version used in `runs-on` isn't
611
611
-- particularly important since we use a Docker container.
612
- , ghjRunsOn = " ubuntu-20.04 "
612
+ , ghjRunsOn = ghcRunsOnVer
613
613
, ghjNeeds = []
614
614
, ghjSteps = steps
615
615
, ghjIf = Nothing
@@ -765,7 +765,7 @@ postgresService = GitHubService
765
765
ircJob :: String -> String -> String -> Config -> GitConfig -> ListBuilder (String , GitHubJob ) ()
766
766
ircJob actionName mainJobName projectName cfg gitconfig = item (" irc" , GitHubJob
767
767
{ ghjName = actionName ++ " (IRC notification)"
768
- , ghjRunsOn = " ubuntu-18.04 "
768
+ , ghjRunsOn = ghcRunsOnVer
769
769
, ghjNeeds = [mainJobName]
770
770
, ghjIf = jobCondition
771
771
, ghjContainer = Nothing
@@ -872,3 +872,10 @@ parseGitHubRepo t =
872
872
repo <- Atto. takeWhile (/= ' .' )
873
873
_ <- optional (Atto. string " .git" )
874
874
return repo
875
+
876
+ -- NB: The Ubuntu version used in `runs-on` isn't particularly important since
877
+ -- we use a Docker container. We do make an attempt to keep it relatively up to
878
+ -- date to ensure that it runs on a version of Ubuntu that GitHub Actions
879
+ -- runners support.
880
+ ghcRunsOnVer :: String
881
+ ghcRunsOnVer = " ubuntu-20.04"
0 commit comments