fix download from github on some networks

This commit is contained in:
Sarto
2026-05-03 17:36:25 +03:30
parent 0e8f6d7311
commit b472cda010
2 changed files with 122 additions and 144 deletions
+3 -3
View File
@@ -143,10 +143,10 @@ jobs:
- name: Compress with UPX
if: matrix.goos == 'linux' || matrix.goos == 'windows'
run: |
# -9 alone (no --lzma) is ~4× faster, only ~5% larger.
# xargs -P fans out across all CPUs.
# Keep best/lzma for small binaries; xargs -P does them
# in parallel across CPUs so wall time stays low.
find build -maxdepth 1 -type f -print0 \
| xargs -0 -n1 -P "$(nproc)" -I{} sh -c 'upx -9 "$1" || true' _ {}
| xargs -0 -n1 -P "$(nproc)" -I{} sh -c 'upx --best --lzma "$1" || true' _ {}
- name: Upload artifacts
uses: actions/upload-artifact@v4