From 401017de6a20f7114153271747e996607bf094f7 Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Wed, 13 Mar 2024 13:02:50 +0000 Subject: [PATCH] Update release checks for arm and riscv64 Signed-off-by: Stewart X Addison --- sbin/releaseCheck.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/releaseCheck.sh b/sbin/releaseCheck.sh index 8e37335..1f101fd 100755 --- a/sbin/releaseCheck.sh +++ b/sbin/releaseCheck.sh @@ -19,10 +19,12 @@ curl -q https://api.github.com/repos/adoptium/temurin${TEMURIN_VERSION}-binaries awk -F'"' '/browser_download_url/{print$4}' > releaseCheck.$$.tmp || exit 1 #### LINUX (ALL) -for ARCH in x64 aarch64 ppc64le s390x arm; do +for ARCH in x64 aarch64 ppc64le s390x arm riscv64; do EXPECTED=23; [ "${TEMURIN_VERSION}" -eq 8 ] && EXPECTED=15 - # Temurin does not ship on Linux/s390x for JDK8 - if ! [ "${TEMURIN_VERSION}" -eq 8 -a "$ARCH" = "s390x" ]; then + # Exclude checks for platform/versions that Temurin does not ship on + if ! [ \( "${TEMURIN_VERSION}" -eq 8 -a "$ARCH" = "s390x" \) -o \ + \( "${TEMURIN_VERSION}" -ge 20 -a "$ARCH" = "arm" \) -o \ + \( "${TEMURIN_VERSION}" -lt 21 -a "$ARCH" = "riscv64" \) ]; then ACTUAL=$(cat releaseCheck.$$.tmp | grep ${ARCH}_linux | wc -l) if [ $ACTUAL -eq $EXPECTED ] then