Skip to content

Commit

Permalink
use mingw64 zstd to compress to avoid OOM errors on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyd2019 committed May 7, 2024
1 parent 9150e27 commit ff369c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: jeremyd2019/setup-msys2@v2_build32
with:
msystem: MINGW32
install: tar mingw-w64-i686-7zip mingw-w64-x86_64-7zip
install: tar mingw-w64-i686-7zip mingw-w64-x86_64-7zip mingw-w64-x86_64-zstd
update: true
bitness: 32

Expand Down
2 changes: 1 addition & 1 deletion make-msys2-installer
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ create_archives() {
xz --test "${_thisdir}/msys2-base-${_arch}-${_date}.tar.xz"

echo "[Creating zstd archive...]"
zstd -T1 -22 --ultra --force "${_thisdir}/msys2-base-${_arch}-${_date}.tar" -o "${_thisdir}/msys2-base-${_arch}-${_date}.tar.zst"
/mingw64/bin/zstd -T0 -22 --ultra --force "${_thisdir}/msys2-base-${_arch}-${_date}.tar" -o "${_thisdir}/msys2-base-${_arch}-${_date}.tar.zst"
zstd --test "${_thisdir}/msys2-base-${_arch}-${_date}.tar.zst"

rm "${_thisdir}/msys2-base-${_arch}-${_date}.tar"
Expand Down

0 comments on commit ff369c2

Please sign in to comment.