@@ -609,7 +609,7 @@ makeGitHub _argv config@Config {..} gitconfig prj jobs@JobVersions {..} = do
609609 { ghjName = actionName ++ " - Linux - ${{ matrix.compiler }}"
610610 -- NB: The Ubuntu version used in `runs-on` isn't
611611 -- particularly important since we use a Docker container.
612- , ghjRunsOn = " ubuntu-20.04 "
612+ , ghjRunsOn = ghcRunsOnVer
613613 , ghjNeeds = []
614614 , ghjSteps = steps
615615 , ghjIf = Nothing
@@ -765,7 +765,7 @@ postgresService = GitHubService
765765ircJob :: String -> String -> String -> Config -> GitConfig -> ListBuilder (String , GitHubJob ) ()
766766ircJob actionName mainJobName projectName cfg gitconfig = item (" irc" , GitHubJob
767767 { ghjName = actionName ++ " (IRC notification)"
768- , ghjRunsOn = " ubuntu-18.04 "
768+ , ghjRunsOn = ghcRunsOnVer
769769 , ghjNeeds = [mainJobName]
770770 , ghjIf = jobCondition
771771 , ghjContainer = Nothing
@@ -872,3 +872,10 @@ parseGitHubRepo t =
872872 repo <- Atto. takeWhile (/= ' .' )
873873 _ <- optional (Atto. string " .git" )
874874 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