Skip to content

Commit

Permalink
Update release checks for arm and riscv64 (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <sxa@redhat.com>
  • Loading branch information
sxa authored Apr 4, 2024
1 parent 4d28d5e commit b110ce1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sbin/releaseCheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b110ce1

Please sign in to comment.