From e128ac096f0d3a9eb683d9f1158a298adeae8f13 Mon Sep 17 00:00:00 2001 From: Sean Purcell Date: Thu, 6 Apr 2017 10:15:32 -0700 Subject: [PATCH 1/2] Don't build zstd release binary with debug symbols --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 81f76926e..5f0b82e80 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -88,6 +88,8 @@ ( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] COPY programs\zstd.exe zstd_%PLATFORM%.exe && appveyor PushArtifact zstd_%PLATFORM%.exe ) && ( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] lib\dll\example\build_package.bat && + make -C programs DEBUGFLAGS= clean zstd && + cp programs\zstd.exe bin\zstd.exe && make -C programs DEBUGFLAGS= clean zstdmt && cp programs\zstd.exe bin\zstdmt.exe && cd bin\ && 7z a -tzip zstd-win-release-%PLATFORM%.zip * && From 17c12cbca62100389240006689413a1b011365c1 Mon Sep 17 00:00:00 2001 From: Sean Purcell Date: Thu, 6 Apr 2017 10:34:09 -0700 Subject: [PATCH 2/2] Push both artifacts without debug symbols --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 5f0b82e80..27994853a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -85,10 +85,11 @@ SET "CPPFLAGS=-I../../zlib" && SET "LDFLAGS=../../zlib/libz.a" && sh -c "%SCRIPT%" && - ( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] COPY programs\zstd.exe zstd_%PLATFORM%.exe && appveyor PushArtifact zstd_%PLATFORM%.exe ) && ( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] lib\dll\example\build_package.bat && make -C programs DEBUGFLAGS= clean zstd && + cp programs\zstd.exe zstd_%PLATFORM%.exe && + appveyor PushArtifact zstd_%PLATFORM%.exe && cp programs\zstd.exe bin\zstd.exe && make -C programs DEBUGFLAGS= clean zstdmt && cp programs\zstd.exe bin\zstdmt.exe &&