Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add more qemu versions #2891

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .ci/env/apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,19 @@ function install_qemu_emulation_deb {
set +e

versions=(9.0.2 9.0.1 8.2.4)
suffixes=("" "~bpo12+1")
found_version=""
for version in ${versions[@]}; do
qemu_deb="qemu-user-static_${version}+ds-1_amd64.deb"
echo "Checking for http://ftp.debian.org/debian/pool/main/q/qemu/${qemu_deb}"
if wget -q --method=HEAD http://ftp.debian.org/debian/pool/main/q/qemu/${qemu_deb} &> /dev/null;
then
echo "Found qemu version ${version}"
found_version=${qemu_deb}
break
fi
for suffix in ${suffixes[@]}; do
qemu_deb="qemu-user-static_${version}+ds-1${suffix}_amd64.deb"
echo "Checking for http://ftp.debian.org/debian/pool/main/q/qemu/${qemu_deb}"
if wget -q --method=HEAD http://ftp.debian.org/debian/pool/main/q/qemu/${qemu_deb} &> /dev/null;
then
echo "Found qemu version ${version}"
found_version=${qemu_deb}
break 2
fi
done
done

set -eo pipefail
Expand Down