summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-28 10:17:37 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-30 21:21:11 -0500
commit68eb8877a73e09dd76a26017ec065fb843e843ed (patch)
tree8db375b1d8a4d04abd5d458eb93c78984459c75d /.gitlab
parent7619c0b4e55de815de433182057345ec1f4472a3 (diff)
downloadhaskell-68eb8877a73e09dd76a26017ec065fb843e843ed.tar.gz
gen_ci: Only consider release jobs for job metadata
In particular we do not have a release job for FreeBSD so the generation of the platform mapping was failing.
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/gen_ci.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/.gitlab/gen_ci.hs b/.gitlab/gen_ci.hs
index 10e7797bc8..229565f4b6 100755
--- a/.gitlab/gen_ci.hs
+++ b/.gitlab/gen_ci.hs
@@ -17,7 +17,6 @@ import Data.List (intercalate)
import Data.Set (Set)
import qualified Data.Set as S
import System.Environment
-import Data.Maybe
{-
Note [Generating the CI pipeline]
@@ -932,7 +931,7 @@ mkPlatform arch opsys = archName arch <> "-" <> opsysName opsys
-- * Explicitly require tie-breaking for other cases.
platform_mapping :: Map String (JobGroup BindistInfo)
platform_mapping = Map.map go $
- Map.fromListWith combine [ (uncurry mkPlatform (jobPlatform (jobInfo $ v j)), j) | j <- job_groups ]
+ Map.fromListWith combine [ (uncurry mkPlatform (jobPlatform (jobInfo $ v j)), j) | j <- filter hasReleaseBuild job_groups ]
where
whitelist = [ "x86_64-linux-alpine3_12-int_native-validate+fully_static"
, "x86_64-linux-deb10-validate"
@@ -943,8 +942,6 @@ platform_mapping = Map.map go $
combine a b
| name (v a) `elem` whitelist = a -- Explicitly selected
| name (v b) `elem` whitelist = b
- | hasReleaseBuild a, not (hasReleaseBuild b) = a -- Has release build, but other doesn't
- | hasReleaseBuild b, not (hasReleaseBuild a) = b
| otherwise = error (show (name (v a)) ++ show (name (v b)))
go = fmap (BindistInfo . unwords . fromJust . mmlookup "BIN_DIST_NAME" . jobVariables)