fix(ci): verify GNU packages with CPU catalogs

Match the archive-member check to the GNU pyroscope catalog packaging condition.
This commit is contained in:
Chris
2026-09-28 13:23:46 +08:00
committed by GitHub
parent 0609e7ce14
commit 6523ab8d9f
+6 -1
View File
@@ -669,8 +669,13 @@ jobs:
package_file="${{ steps.package.outputs.package_file }}"
archive_members="$(unzip -Z1 "$package_file" | sort)"
expected_members=$'rustfs\nrustfs-cli'
target="${{ matrix.target }}"
features="${{ matrix.features }}"
if [[ "$target" == *-linux-gnu && "$features" == "pyroscope" ]]; then
expected_members+=$'\nrustfs.cpu-symbol-catalog.json\nrustfs.cpu-symbol-catalog.sha256'
fi
if [[ "$archive_members" != "$expected_members" ]]; then
echo "Linux package must contain exactly rustfs and rustfs-cli" >&2
echo "Linux package does not contain the expected files" >&2
printf '%s\n' "$archive_members" >&2
exit 1
fi