mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
ci: Constrain FW_URL to x86_64 one
With 0.5.0 release of `rust-hypervisor-firmware`, `aarch64` binary were added to assets, which causes the `FW_URL` to have multiple download url separated by a white space, thus our integration tests would fail. Constrain `FW_URL` to `hypervisor-fw` to resolve this. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
parent
ec9b9ab542
commit
261bfac4d4
@ -120,14 +120,17 @@ process_common_args() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
download_hypervisor_fw() {
|
download_hypervisor_fw() {
|
||||||
|
FW_TAG="0.5.0"
|
||||||
if [ -n "$AUTH_DOWNLOAD_TOKEN" ]; then
|
if [ -n "$AUTH_DOWNLOAD_TOKEN" ]; then
|
||||||
echo "Using authenticated download from GitHub"
|
echo "Using authenticated download from GitHub"
|
||||||
FW_URL=$(curl --silent https://api.github.com/repos/cloud-hypervisor/rust-hypervisor-firmware/releases/latest \
|
FW_URL=$(curl --silent https://api.github.com/repos/cloud-hypervisor/rust-hypervisor-firmware/releases/tags/${FW_TAG} \
|
||||||
--header "Authorization: Token $AUTH_DOWNLOAD_TOKEN" \
|
--header "Authorization: Token $AUTH_DOWNLOAD_TOKEN" \
|
||||||
--header "X-GitHub-Api-Version: 2022-11-28" | grep "browser_download_url" | grep -o 'https://.*[^ "]')
|
--header "X-GitHub-Api-Version: 2022-11-28" | grep "browser_download_url" |
|
||||||
|
grep -oP '"https://[^"]*hypervisor-fw"' | sed -e 's/^"//' -e 's/"$//')
|
||||||
else
|
else
|
||||||
echo "Using anonymous download from GitHub"
|
echo "Using anonymous download from GitHub"
|
||||||
FW_URL=$(curl --silent https://api.github.com/repos/cloud-hypervisor/rust-hypervisor-firmware/releases/latest | grep "browser_download_url" | grep -o 'https://.*[^ "]')
|
FW_URL=$(curl --silent https://api.github.com/repos/cloud-hypervisor/rust-hypervisor-firmware/releases/tags/${FW_TAG} |
|
||||||
|
grep "browser_download_url" | grep -oP '"https://[^"]*hypervisor-fw"' | sed -e 's/^"//' -e 's/"$//')
|
||||||
fi
|
fi
|
||||||
FW="$WORKLOADS_DIR/hypervisor-fw"
|
FW="$WORKLOADS_DIR/hypervisor-fw"
|
||||||
pushd "$WORKLOADS_DIR" || exit
|
pushd "$WORKLOADS_DIR" || exit
|
||||||
|
Loading…
Reference in New Issue
Block a user