mirror of
https://github.com/openai/codex.git
synced 2026-09-15 12:08:01 +00:00
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:
5
.github/workflows/rust-release-windows.yml
vendored
5
.github/workflows/rust-release-windows.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user