mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: Use binary kernel artifacts
The Linux kernel fork repository for Cloud Hypervisor now produces prebuilt x86-64 and aarch64 binaries. Speed up the CI by using those binaries. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
@@ -42,6 +42,7 @@ checkout_repo() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Not actively used by CI
|
||||
build_custom_linux() {
|
||||
ARCH=$(uname -m)
|
||||
SRCDIR=$PWD
|
||||
@@ -130,6 +131,24 @@ download_hypervisor_fw() {
|
||||
popd || exit
|
||||
}
|
||||
|
||||
download_linux() {
|
||||
if [ -n "$AUTH_DOWNLOAD_TOKEN" ]; then
|
||||
echo "Using authenticated download from GitHub"
|
||||
KERNEL_URLS=$(curl --silent https://api.github.com/repos/cloud-hypervisor/linux/releases/latest \
|
||||
--header "Authorization: Token $AUTH_DOWNLOAD_TOKEN" \
|
||||
--header "X-GitHub-Api-Version: 2022-11-28" | grep "browser_download_url" | grep -o 'https://.*[^ "]')
|
||||
else
|
||||
echo "Using anonymous download from GitHub"
|
||||
KERNEL_URLS=$(curl --silent https://api.github.com/repos/cloud-hypervisor/linux/releases/latest | grep "browser_download_url" | grep -o 'https://.*[^ "]')
|
||||
fi
|
||||
pushd "$WORKLOADS_DIR" || exit
|
||||
for url in $KERNEL_URLS; do
|
||||
wget --quiet "$url" || exit 1
|
||||
done
|
||||
|
||||
popd || exit
|
||||
}
|
||||
|
||||
download_ovmf() {
|
||||
OVMF_FW_TAG="ch-6624aa331f"
|
||||
OVMF_FW_URL="https://github.com/cloud-hypervisor/edk2/releases/download/$OVMF_FW_TAG/CLOUDHV.fd"
|
||||
|
||||
Reference in New Issue
Block a user