fix(ci): also install rocm in one transaction (#2226)

speeds up builds a tiny bit
This commit is contained in:
renner 2026-05-17 01:28:56 +02:00 committed by GitHub
parent 844b4865af
commit c2ed7b78ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,17 +62,14 @@ FEDORA_PACKAGES=(
ydotool
)
echo "Installing ${#FEDORA_PACKAGES[@]} DX packages from Fedora repos..."
dnf5 -y install "${FEDORA_PACKAGES[@]}"
# rocm doesn't work well on nvidia
if [[ ! "${IMAGE_NAME}" =~ nvidia ]]; then
dnf install -y \
rocm-hip \
rocm-opencl \
rocm-smi
FEDORA_PACKAGES+=("rocm-hip" "rocm-opencl" "rocm-smi")
fi
echo "Installing ${#FEDORA_PACKAGES[@]} DX packages from Fedora repos..."
dnf5 -y install "${FEDORA_PACKAGES[@]}"
# Docker packages from their repo
dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo
sed -i "s/enabled=.*/enabled=0/g" /etc/yum.repos.d/docker-ce.repo