packaging: strip OpenVMM debug information

Remove DWARF debug information from the OpenVMM binary before packaging it.
This reduces the compressed OpenVMM asset by about 87 MiB and keeps the
combined release tarball below GitHub’s 2 GiB asset limit.

This should be reverted when the CI allows.

Generated-By: GitHub Copilot
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
Aurélien Bombo
2026-07-16 12:22:03 -05:00
parent 92014f7b46
commit 161969b4fa

View File

@@ -57,6 +57,9 @@ build_openvmm_from_source() {
local binary="target/release/openvmm"
[[ -f "${binary}" ]] || die "openvmm binary not found at ${binary}"
# OpenVMM release builds include DWARF; remove it so the combined Kata
# release tarball remains below GitHub's 2 GiB asset limit.
strip --strip-debug "${binary}"
popd
# Stage the binary at openvmm/openvmm for the installer to pick up