@@ -102,15 +102,21 @@ jobs:
102102 , DISTRO: "CentOS"
103103 , ARTIFACT: "x86_64-linux-centos7"
104104 , ADD_CABAL_ARGS: "--enable-split-sections"
105- },
106- { image: "rockylinux:8"
107- , installCmd: "yum -y install epel-release && yum install -y --allowerasing"
108- , toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
109- , DISTRO: "Unknown"
110- , ARTIFACT: "x86_64-linux-unknown"
111- , ADD_CABAL_ARGS: "--enable-split-sections"
112105 }
113106 ]
107+ # TODO: rm
108+ # we need a different image for 9.4.4, because GHC bindists are busted
109+ include :
110+ - ghc : 8.10.7
111+ platform : { image: "rockylinux:8", installCmd: "yum -y install epel-release && yum install -y --allowerasing", toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf", DISTRO: "Unknown", ARTIFACT: "x86_64-linux-unknown", ADD_CABAL_ARGS: "--enable-split-sections" }
112+ - ghc : 9.0.2
113+ platform : { image: "rockylinux:8", installCmd: "yum -y install epel-release && yum install -y --allowerasing", toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf", DISTRO: "Unknown", ARTIFACT: "x86_64-linux-unknown", ADD_CABAL_ARGS: "--enable-split-sections" }
114+ - ghc : 9.2.5
115+ platform : { image: "rockylinux:8", installCmd: "yum -y install epel-release && yum install -y --allowerasing", toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf", DISTRO: "Unknown", ARTIFACT: "x86_64-linux-unknown", ADD_CABAL_ARGS: "--enable-split-sections" }
116+ - ghc : 9.2.7
117+ platform : { image: "rockylinux:8", installCmd: "yum -y install epel-release && yum install -y --allowerasing", toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf", DISTRO: "Unknown", ARTIFACT: "x86_64-linux-unknown", ADD_CABAL_ARGS: "--enable-split-sections" }
118+ - ghc : 9.4.4
119+ platform : { image: "fedora:33", installCmd: "dnf install -y", toolRequirements: "autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf tree", DISTRO: "Unknown", ARTIFACT: "x86_64-linux-unknown", ADD_CABAL_ARGS: "--enable-split-sections" }
114120 container :
115121 image : ${{ matrix.platform.image }}
116122 steps :
@@ -400,9 +406,9 @@ jobs:
400406 toolRequirements : libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf tree
401407 DISTRO : Mint
402408 ARTIFACT : " x86_64-linux-mint19.3"
403- - image : " rockylinux:8 "
404- installCmd : " yum -y install epel-release && yum install -y --allowerasing "
405- toolRequirements : " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
409+ - image : " fedora:33 "
410+ installCmd : " dnf install -y "
411+ toolRequirements : " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf tree "
406412 DISTRO : " Unknown"
407413 ARTIFACT : " x86_64-linux-unknown"
408414 - image : linuxmintd/mint20.2-amd64
@@ -418,7 +424,7 @@ jobs:
418424 run : |
419425 ${{ matrix.installCmd }} curl bash git ${{ matrix.toolRequirements }}
420426
421- - if : matrix.platform. DISTRO == 'Unknown'
427+ - if : matrix.DISTRO == 'Unknown'
422428 run : |
423429 echo "NAME=Linux" > /etc/os-release
424430 echo "ID=linux" >> /etc/os-release
@@ -432,8 +438,9 @@ jobs:
432438 path : ./
433439
434440 - name : Create bindist
441+ # we need reverse sorting, so that the wrapper binary comes from the oldest GHC always
435442 run : |
436- for bindist in out-*.tar ; do
443+ for bindist in $(find . -mindepth 1 -maxdepth 1 -type f -name ' out-*.tar' -print | sort -r) ; do
437444 tar xf "${bindist}"
438445 done
439446 unset bindist
@@ -694,9 +701,9 @@ jobs:
694701 toolRequirements : libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf tree
695702 DISTRO : Mint
696703 ARTIFACT : " x86_64-linux-mint19.3"
697- - image : " rockylinux:8 "
698- installCmd : " yum -y install epel-release && yum install -y --allowerasing "
699- toolRequirements : " autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf"
704+ - image : " fedora:33 "
705+ installCmd : dnf install -y
706+ toolRequirements : autoconf automake binutils bzip2 coreutils curl elfutils-devel elfutils-libs findutils gcc gcc-c++ git gmp gmp-devel jq lbzip2 make ncurses ncurses-compat-libs ncurses-devel openssh-clients patch perl pxz python3 sqlite sudo wget which xz zlib-devel patchelf tree
700707 DISTRO : " Unknown"
701708 ARTIFACT : " x86_64-linux-unknown"
702709 - image : linuxmintd/mint20.2-amd64
@@ -712,7 +719,7 @@ jobs:
712719 run : |
713720 ${{ matrix.installCmd }} curl bash git ${{ matrix.toolRequirements }}
714721
715- - if : matrix.platform. DISTRO == 'Unknown'
722+ - if : matrix.DISTRO == 'Unknown'
716723 run : |
717724 echo "NAME=Linux" > /etc/os-release
718725 echo "ID=linux" >> /etc/os-release
0 commit comments