summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-11-15 09:22:59 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-11-15 09:22:59 (GMT)
commitb0e994cc574d08f5ca1d6f76930b8a54d8991905 (patch)
treeb821747d0f630694a9b258f0b6d606abbaf600d8
parentd84a80e668f1798663a041536f744d48fb8647c8 (diff)
downloadlz4-b0e994cc574d08f5ca1d6f76930b8a54d8991905.zip
lz4-b0e994cc574d08f5ca1d6f76930b8a54d8991905.tar.gz
lz4-b0e994cc574d08f5ca1d6f76930b8a54d8991905.tar.bz2
upload executables to GitHub
-rw-r--r--appveyor.yml51
1 files changed, 49 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml
index d96ebc8..897f4c9 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -22,6 +22,7 @@ environment:
install:
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
+ - MKDIR bin bin\x86 bin\x64
- if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
- if [%COMPILER%]==[gcc] (
SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" &&
@@ -46,12 +47,24 @@ build_script:
make -v &&
echo ----- &&
if not [%PLATFORM%]==[clang] (
- make -C programs lz4 && make -C tests fullbench
+ make -C programs lz4 && make -C tests fullbench && make -C lib liblz4
) ELSE (
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" &&
+ make -C lib liblz4 CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion"
)
)
+ - if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw64] (
+ COPY lib\liblz4.* bin\x64\ &&
+ 7z a bin\liblz4-dll_x64.zip bin\x64\* &&
+ appveyor PushArtifact bin\liblz4-dll_x64.zip &&
+ COPY programs\lz4.exe bin\lz4.exe &&
+ appveyor PushArtifact bin\lz4.exe
+ )
+ - if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw32] (
+ COPY programs\lz4.exe bin\lz4_32.exe &&
+ appveyor PushArtifact bin\lz4_32.exe
+ )
- if [%COMPILER%]==[gcc] (COPY tests\fullbench.exe programs\)
- if [%COMPILER%]==[visual] (
ECHO *** &&
@@ -87,3 +100,37 @@ test_script:
echo ------- lz4 tested ------- &&
fullbench.exe -i1 fullbench.exe
)
+
+artifacts:
+ - path: bin\lz4.exe
+ - path: bin\lz4_32.exe
+ - path: bin\liblz4-dll_x64.zip
+
+deploy:
+- provider: GitHub
+ auth_token:
+ secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
+ artifact: bin\lz4.exe
+ force_update: true
+ on:
+ COMPILER: gcc
+ PLATFORM: "mingw64"
+ appveyor_repo_tag: true
+- provider: GitHub
+ auth_token:
+ secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
+ artifact: bin\lz4_32.exe
+ force_update: true
+ on:
+ COMPILER: gcc
+ PLATFORM: "mingw32"
+ appveyor_repo_tag: true
+- provider: GitHub
+ auth_token:
+ secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
+ artifact: bin\liblz4-dll_x64.zip
+ force_update: true
+ on:
+ COMPILER: gcc
+ PLATFORM: "mingw32"
+ appveyor_repo_tag: true