summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-02-15 15:12:15 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2023-02-20 09:33:07 +0000
commitf1751d36a84bc56afb24da2a31a6f7bebab184e1 (patch)
tree09dc253efff531f71cff574a7e0aa66d4daf425b
parent8e9b8753a50f8ba9e1e7f265ec5b4dbe78bc4e19 (diff)
downloadhaskell-f1751d36a84bc56afb24da2a31a6f7bebab184e1.tar.gz
ghcup-metadata: Use Ubuntu and Rocky bindists
Prefer to use the Ubuntu 20.04 and 18.04 binary distributions on Ubuntu and Linux Mint. Prefer to use the Rocky 8 binary distribution on unknown distributions. (cherry picked from commit c6a967d9545ef5577514466f3fa6894f2899aff8)
-rw-r--r--.gitlab-ci.yml6
-rwxr-xr-x.gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py19
2 files changed, 20 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 286e9d5d88..d1e779a378 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1006,6 +1006,12 @@ ghcup-metadata-nightly:
artifacts: false
- job: nightly-x86_64-linux-centos7-validate
artifacts: false
+ - job: nightly-x86_64-linux-ubuntu20_04-validate
+ artifacts: false
+ - job: nightly-x86_64-linux-ubuntu18_04-validate
+ artifacts: false
+ - job: nightly-x86_64-linux-rocky8-validate
+ artifacts: false
- job: nightly-x86_64-darwin-validate
artifacts: false
- job: nightly-aarch64-darwin-validate
diff --git a/.gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py b/.gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py
index 6d19bc344e..fc68f8c09a 100755
--- a/.gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py
+++ b/.gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py
@@ -93,6 +93,12 @@ def fedora(n):
def alpine(n):
return linux_platform("x86_64", "x86_64-linux-alpine{n}".format(n=n))
+def rocky(n):
+ return linux_platform("x86_64", "x86_64-linux-rocky{n}".format(n=n))
+
+def ubuntu(n):
+ return linux_platform("x86_64", "x86_64-linux-ubuntu{n}".format(n=n))
+
def linux_platform(arch, opsys):
return PlatformSpec( opsys, 'ghc-{version}-{arch}-unknown-linux'.format(version="{version}", arch=arch) )
@@ -156,6 +162,9 @@ def mk_new_yaml(release_mode, version, pipeline_type, job_map):
eprint("\n=== " + platform.name + " " + ('=' * (75 - len(platform.name))))
return mk_one_metadata(release_mode, version, job_map, mk_from_platform(pipeline_type, platform))
+ ubuntu1804 = mk(ubuntu("18_04"))
+ ubuntu2004 = mk(ubuntu("20_04"))
+ rocky8 = mk(rocky("8"))
# Here are all the bindists we can distribute
centos7 = mk(centos(7))
fedora33 = mk(fedora(33))
@@ -178,18 +187,18 @@ def mk_new_yaml(release_mode, version, pipeline_type, job_map):
, "(>= 10 && < 11)": deb10
, ">= 11": deb11
, "unknown_versioning": deb11 }
- , "Linux_Ubuntu" : { "unknown_versioning": deb10
- , "( >= 16 && < 19 )": deb9
+ , "Linux_Ubuntu" : { "unknown_versioning": ubuntu2004
+ , "( >= 16 && < 19 )": ubuntu1804
}
- , "Linux_Mint" : { "< 20": deb9
- , ">= 20": deb10 }
+ , "Linux_Mint" : { "< 20": ubuntu1804
+ , ">= 20": ubuntu2004 }
, "Linux_CentOS" : { "( >= 7 && < 8 )" : centos7
, "unknown_versioning" : centos7 }
, "Linux_Fedora" : { ">= 33": fedora33
, "unknown_versioning": centos7 }
, "Linux_RedHat" : { "unknown_versioning": centos7 }
#MP: Replace here with Rocky8 when that job is in the pipeline
- , "Linux_UnknownLinux" : { "unknown_versioning": fedora33 }
+ , "Linux_UnknownLinux" : { "unknown_versioning": rocky8 }
, "Darwin" : { "unknown_versioning" : darwin_x86 }
, "Windows" : { "unknown_versioning" : windows }
, "Linux_Alpine" : { "unknown_versioning": alpine3_12 }