diff options
-rw-r--r-- | appveyor.yml | 51 |
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 |