appveyor artifact generation

fix presence of the dynamic library in produced package
This commit is contained in:
Yann Collet 2020-11-11 17:12:35 -08:00
parent 3771943c7e
commit 1921a05993

View File

@ -1,22 +1,22 @@
version: 1.0.{build} version: 1.0.{build}
environment: environment:
matrix: matrix:
- COMPILER: "visual"
CONFIGURATION: "Debug"
PLATFORM: "x64"
- COMPILER: "visual"
CONFIGURATION: "Debug"
PLATFORM: "Win32"
- COMPILER: "visual"
CONFIGURATION: "Release"
PLATFORM: "x64"
- COMPILER: "visual"
CONFIGURATION: "Release"
PLATFORM: "Win32"
- COMPILER: "gcc" - COMPILER: "gcc"
PLATFORM: "mingw64" PLATFORM: "mingw64"
- COMPILER: "gcc" - COMPILER: "gcc"
PLATFORM: "mingw32" PLATFORM: "mingw32"
- COMPILER: "visual"
CONFIGURATION: "Debug"
PLATFORM: "x64"
- COMPILER: "visual"
CONFIGURATION: "Debug"
PLATFORM: "Win32"
- COMPILER: "visual"
CONFIGURATION: "Release"
PLATFORM: "x64"
- COMPILER: "visual"
CONFIGURATION: "Release"
PLATFORM: "Win32"
- COMPILER: "gcc" - COMPILER: "gcc"
PLATFORM: "clang" PLATFORM: "clang"
@ -50,7 +50,7 @@ build_script:
make -C programs lz4 && make -C programs lz4 &&
make -C tests fullbench && make -C tests fullbench &&
make -C tests fuzzer && make -C tests fuzzer &&
make -C lib lib make -C lib lib V=1
) ELSE ( ) ELSE (
make -C programs lz4 CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" && make -C programs lz4 CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
make -C tests fullbench CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" && make -C tests fullbench CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
@ -67,18 +67,18 @@ build_script:
COPY lib\lz4hc.h bin\include\ && COPY lib\lz4hc.h bin\include\ &&
COPY lib\lz4frame.h bin\include\ && COPY lib\lz4frame.h bin\include\ &&
COPY lib\liblz4.a bin\static\liblz4_static.lib && COPY lib\liblz4.a bin\static\liblz4_static.lib &&
COPY lib\dll\liblz4.* bin\dll\ && COPY lib\dll\* bin\dll\ &&
COPY lib\dll\example\Makefile bin\example\ && COPY lib\dll\example\Makefile bin\example\ &&
COPY lib\dll\example\fullbench-dll.* bin\example\ && COPY lib\dll\example\fullbench-dll.* bin\example\ &&
COPY lib\dll\example\README.md bin\ && COPY lib\dll\example\README.md bin\ &&
COPY programs\lz4.exe bin\lz4.exe COPY programs\lz4.exe bin\lz4.exe
) )
- if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw64] ( - if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw64] (
7z.exe a bin\lz4_x64.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include && 7z.exe a -bb1 bin\lz4_x64.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include &&
appveyor PushArtifact bin\lz4_x64.zip appveyor PushArtifact bin\lz4_x64.zip
) )
- if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw32] ( - if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw32] (
7z.exe a bin\lz4_x86.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include && 7z.exe a -bb1 bin\lz4_x86.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include &&
appveyor PushArtifact bin\lz4_x86.zip appveyor PushArtifact bin\lz4_x86.zip
) )
- if [%COMPILER%]==[gcc] (COPY tests\*.exe programs\) - if [%COMPILER%]==[gcc] (COPY tests\*.exe programs\)