updated therock selection script to fetch the latest 7.x.x available

This commit is contained in:
Donato Capitella
2025-10-11 13:56:11 +01:00
parent 80e5683162
commit 6e4daadce9
3 changed files with 8 additions and 139 deletions
+4 -4
View File
@@ -6,15 +6,15 @@ RUN dnf -y --nodocs --setopt=install_weak_deps=False install \
radeontop git vim patch curl ninja-build tar xz \
&& dnf clean all && rm -rf /var/cache/dnf/*
# find & fetch the latest Linux 7.0.0rc tarball (gfx1151)
# find & fetch the latest Linux 7.x.x rc tarball (gfx1151)
WORKDIR /tmp
ARG ROCM_RC_VER=7.0.0rc
ARG ROCM_MAJOR_VER=7
ARG GFX=gfx1151
RUN set -euo pipefail; \
BASE="https://therock-nightly-tarball.s3.amazonaws.com"; \
PREFIX="therock-dist-linux-${GFX}-${ROCM_RC_VER}"; \
PREFIX="therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}"; \
KEY="$(curl -s "${BASE}?list-type=2&prefix=${PREFIX}" \
| grep -o "therock-dist-linux-${GFX}-${ROCM_RC_VER}[0-9]\{8\}\.tar\.gz" \
| grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\.[0-9]\+\.[0-9]\+rc[0-9]\{8\}\.tar\.gz" \
| sort | tail -n1)"; \
echo "Latest tarball: ${KEY}"; \
curl -L --fail -o therock.tar.gz "${BASE}/${KEY}"