diff --git a/zstd/build_mingw.sh b/zstd/build_mingw.sh index 7cdeeca63..1024c8bc7 100755 --- a/zstd/build_mingw.sh +++ b/zstd/build_mingw.sh @@ -11,6 +11,9 @@ echo "::group::prepare sources $download_url" mkdir -p "$dp0/release/build" && cd "$dp0/release" +git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib +make -C zlib -f win32/Makefile.gcc libz.a + wget "$download_url" -O "tool-$tool_version.tar.gz" tar -xf "tool-$tool_version.tar.gz" && cd "$tool_name-$tool_version" @@ -18,10 +21,6 @@ echo "::endgroup::" echo "::group::build" - -git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib -make -C zlib -f win32/Makefile.gcc libz.a - export CPPFLAGS=-I./zlib export LDFLAGS=./zlib/libz.a make -j allzstd MOREFLAGS=-static V=1