From d460abe2f661626baa7866a5a41523c5030978e7 Mon Sep 17 00:00:00 2001 From: mu <59917266+4eUeP@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:28:01 +0800 Subject: [PATCH] Upgrade ghc9.4 to 9.4.8 --- build.sh | 19 ++++++++++--------- dockerfiles/ghc_from_haskell | 10 +++++----- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/build.sh b/build.sh index 79fc4f6..4eb3e7d 100755 --- a/build.sh +++ b/build.sh @@ -209,12 +209,13 @@ _push_ghc_manifest() { $DOCKER_BIN manifest rm ghcr.io/hstreamdb/ghc:$tag || true $DOCKER_BIN manifest rm ghcr.io/hstreamdb/ghc:$tag1 || true - $DOCKER_BIN manifest create ghcr.io/hstreamdb/ghc:$tag \ - ghcr.io/hstreamdb/ghc:${tag}_x86_64 \ - ghcr.io/hstreamdb/ghc:${tag}_aarch64 - $DOCKER_BIN manifest create ghcr.io/hstreamdb/ghc:$tag1 \ - ghcr.io/hstreamdb/ghc:${tag1}_x86_64 \ - ghcr.io/hstreamdb/ghc:${tag1}_aarch64 + [ "$(docker pull ghcr.io/hstreamdb/ghc:${tag}_x86_64)" ] && \ + manifests="ghcr.io/hstreamdb/ghc:${tag}_x86_64" || true + [ "$(docker pull ghcr.io/hstreamdb/ghc:${tag}_aarch64)" ] && \ + manifests="$manifests ghcr.io/hstreamdb/ghc:${tag}_aarch64" || true + + $DOCKER_BIN manifest create ghcr.io/hstreamdb/ghc:$tag $manifests + $DOCKER_BIN manifest create ghcr.io/hstreamdb/ghc:$tag1 $manifests $DOCKER_BIN manifest push ghcr.io/hstreamdb/ghc:$tag $DOCKER_BIN manifest push ghcr.io/hstreamdb/ghc:$tag1 @@ -238,7 +239,7 @@ build_ghc902() { _build_ghc 9.2.8 9.2.8 9.2 } build_ghc904() { - _build_ghc 9.4.5 9.4.5 9.4 + _build_ghc 9.4.8 9.4.8 9.4 } push_ghc810() { @@ -248,7 +249,7 @@ push_ghc902() { _push_ghc 9.2.8 9.2 } push_ghc904() { - _push_ghc 9.4.5 9.4 + _push_ghc 9.4.8 9.4 } push_ghc810_manifest() { @@ -258,7 +259,7 @@ push_ghc902_manifest() { _push_ghc_manifest 9.2.8 9.2 } push_ghc904_manifest() { - _push_ghc_manifest 9.4.5 9.4 + _push_ghc_manifest 9.4.8 9.4 } push_ghc_latest_manifest() { diff --git a/dockerfiles/ghc_from_haskell b/dockerfiles/ghc_from_haskell index 46108e0..e76a70b 100644 --- a/dockerfiles/ghc_from_haskell +++ b/dockerfiles/ghc_from_haskell @@ -68,7 +68,7 @@ RUN \ \ cabal --version -ARG GHC=9.2.5 +ARG GHC=9.2.8 # Note that this key is not for ghc9.4+ ARG GHC_RELEASE_KEY=88B57FCF7DB53B4DB3BFA4B1588764FBE22D19C4 @@ -97,9 +97,9 @@ RUN \ GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb10-linux.tar.xz"; \ GHC_SHA256='645433359d8ad9e7b286f85ef5111db1b787ee3712c24c5dfde7c62769aa59a4'; \ ;; \ - '9.4.5') \ + '9.4.8') \ GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb10-linux.tar.xz"; \ - GHC_SHA256='ecf16ec503e739e727174b29e5acbe4cf0c54737dd4d5eda046e09323f9ee248'; \ + GHC_SHA256='278e287e1ee624712b9c6d7803d1cf915ca1cce56e013b0a16215eb8dfeb1531'; \ GHC_RELEASE_KEY='88b57fcf7db53b4db3bfa4b1588764fbe22d19c4'; \ GHC_EXTRACT_NAME="ghc-$GHC-$ARCH-unknown-linux"; \ ;; \ @@ -116,9 +116,9 @@ RUN \ GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-ubuntu20.04-linux.tar.xz"; \ GHC_SHA256='6e4adc184a53ca9d9dd8c11c6611d0643fdc3b76550ae769e378d9edb2bda745'; \ ;; \ - '9.4.5') \ + '9.4.8') \ GHC_URL="https://downloads.haskell.org/~ghc/$GHC/ghc-$GHC-$ARCH-deb11-linux.tar.xz"; \ - GHC_SHA256='561ccb6b155672f5077fd79daf13a862710049202c7448ce82ee2ee1d9063bc7'; \ + GHC_SHA256='2743629d040f3213499146cb5154621d6f25e85271019afc9b9009e04d66bf6c'; \ GHC_RELEASE_KEY='88b57fcf7db53b4db3bfa4b1588764fbe22d19c4'; \ GHC_EXTRACT_NAME="ghc-$GHC-$ARCH-unknown-linux"; \ ;; \