From b44af92ca0eeeb030736094ab11951c1dc645de4 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 14 Sep 2026 22:00:24 +0000 Subject: [PATCH] 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 --- .github/workflows/rust-release-windows.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-release-windows.yml b/.github/workflows/rust-release-windows.yml index 27e8b96458..20490c5ec5 100644 --- a/.github/workflows/rust-release-windows.yml +++ b/.github/workflows/rust-release-windows.yml @@ -576,7 +576,10 @@ jobs: # codex-.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