Compress larger Windows release artifacts first (#45528)

Sort top-level artifact files by descending size before dispatching them to
`xargs -P2`, so both compression workers stay busy.

GitOrigin-RevId: a459af0a0c50ead1aaf2a7c19563d8100cd63f0e
This commit is contained in:
Charlie Marsh
2026-09-14 22:00:24 +00:00
committed by copyberry
parent b0d95427c2
commit b44af92ca0

View File

@@ -576,7 +576,10 @@ jobs:
# codex-<target>.zip
# Variables in the single-quoted script expand in the child shell.
# shellcheck disable=SC2016
printf '%s\0' "$dest"/* |
# Start larger binaries first so both workers stay busy.
find "$dest" -maxdepth 1 -type f -printf '%s %p\0' |
sort -z -nr |
cut -z -d ' ' -f 2- |
xargs -0 -n1 -P2 bash -c '
set -euo pipefail
f=$1