-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
6,624 additions
and
2,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,81 @@ | ||
version: 3.0.1-build{build} | ||
version: 3.1.0-build{build} | ||
skip_non_tags: true | ||
os: Visual Studio 2015 | ||
clone_depth: 1 | ||
|
||
image: | ||
- Visual Studio 2015 | ||
- Visual Studio 2017 | ||
- Visual Studio 2019 | ||
|
||
build: | ||
project: bit7z.vcxproj | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
environment: | ||
bit7z_version: 3.0.1 | ||
msvc_dir: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC | ||
bit7z_version: 3.1.0-beta | ||
|
||
matrix: | ||
# MSVC x86 | ||
- name: msvc2015_x86 | ||
arch: x86 | ||
qt_dir: C:\Qt\5.11\msvc2015\bin | ||
- name: msvc_x86 # MSVC x86 | ||
platform: x86 | ||
fast_finish: true | ||
|
||
# MSVC x86 MT | ||
- name: msvc2015_mt_x86 | ||
arch: x86 | ||
- name: msvc_mt_x86 # MSVC x86 MT | ||
platform: x86 | ||
mt: TRUE | ||
qt_dir: C:\Qt\5.11\msvc2015\bin | ||
fast_finish: true | ||
|
||
# MSVC x64 | ||
- name: msvc2015_x64 | ||
arch: x64 | ||
qt_dir: C:\Qt\5.11\msvc2015_64\bin | ||
- name: msvc_x64 # MSVC x64 | ||
platform: x64 | ||
fast_finish: true | ||
|
||
# MSVC x64 MT | ||
- name: msvc2015_mt_x64 | ||
arch: x64 | ||
- name: msvc_mt_x64 # MSVC x64 MT | ||
platform: x64 | ||
mt: TRUE | ||
qt_dir: C:\Qt\5.11\msvc2015_64\bin | ||
|
||
init: | ||
- set PATH=%PATH%;%msvc_dir%;%qt_dir% | ||
- vcvarsall.bat %arch% | ||
|
||
before_build: | ||
- ps: Test-Path env:mt | ||
- ps: if (Test-Path env:mt) { | ||
${content} = (Get-Content bit7z.vcxproj); | ||
${content} = ${content}.Replace("DLL</RuntimeLibrary>", "</RuntimeLibrary>"); | ||
Set-Content bit7z.vcxproj ${content}; | ||
} | ||
- git submodule update --init --recursive | ||
|
||
build_script: | ||
- git submodule update --init --recursive | ||
- mkdir build | ||
- cd build | ||
- if "%mt%"=="" ( | ||
qmake ..\bit7z.pro | ||
) else ( | ||
qmake ..\bit7z.pro "QMAKE_CFLAGS_RELEASE = -O2 -MT" "QMAKE_CXXFLAGS_RELEASE = -O2 -MT" "QMAKE_CFLAGS_DEBUG = -Zi -MTd" "QMAKE_CXXFLAGS_DEBUG = -Zi -MTd" | ||
) | ||
- nmake release | ||
- nmake debug | ||
- cd .. | ||
- mkdir pkg | ||
- mkdir pkg\bit7z\ | ||
- mkdir pkg\bit7z\lib\ | ||
- mkdir pkg\bit7z\include\ | ||
- copy bin\%arch%\*.* pkg\bit7z\lib\ | ||
- copy include\bit*.hpp pkg\bit7z\include\ | ||
- copy README.md pkg\bit7z\ | ||
- copy LICENSE pkg\bit7z\ | ||
- echo %bit7z_version% %name% > pkg\bit7z\BUILD.txt | ||
- cd pkg | ||
- 7z a -t7z bit7z-v%bit7z_version%-%name%.7z * | ||
- msbuild bit7z.vcxproj /p:configuration=release /p:platform=%platform% | ||
- msbuild bit7z.vcxproj /p:configuration=debug /p:platform=%platform% | ||
|
||
after_build: | ||
- set msvc_ver=%APPVEYOR_BUILD_WORKER_IMAGE:Visual Studio =msvc%%name:msvc=% | ||
- mkdir pkg | ||
- mkdir pkg\bit7z\ | ||
- mkdir pkg\bit7z\lib\ | ||
- mkdir pkg\bit7z\include\ | ||
- copy bin\%platform%\*.* pkg\bit7z\lib\ | ||
- copy include\bit*.hpp pkg\bit7z\include\ | ||
- copy README.md pkg\bit7z\ | ||
- copy LICENSE pkg\bit7z\ | ||
- echo %bit7z_version% %msvc_ver% > pkg\bit7z\BUILD.txt | ||
- cd pkg | ||
- 7z a -t7z bit7z-v%bit7z_version%-%msvc_ver%.7z * | ||
|
||
artifacts: | ||
- path: pkg\*.7z | ||
name: binary | ||
- path: pkg\*.7z | ||
name: binary | ||
|
||
test: off | ||
|
||
deploy: | ||
provider: GitHub | ||
release: $(APPVEYOR_REPO_TAG_NAME) | ||
description: 'Binaries of Bit7z v%bit7z_version%' | ||
auth_token: | ||
secure: /WV4rvJOHuV7V0UVzX96DF61dznIJdluPBPIVDGKiQDz3EPQ0ETnyIJ8bDTLHUXT | ||
artifact: /.*\.7z/ | ||
draft: true | ||
prerelease: false | ||
on: | ||
# branch: master | ||
appveyor_repo_tag: true | ||
provider: GitHub | ||
release: $(APPVEYOR_REPO_TAG_NAME) | ||
description: 'Binaries of Bit7z v%bit7z_version%' | ||
auth_token: | ||
secure: /WV4rvJOHuV7V0UVzX96DF61dznIJdluPBPIVDGKiQDz3EPQ0ETnyIJ8bDTLHUXT | ||
artifact: /.*\.7z/ | ||
draft: true | ||
prerelease: false | ||
on: | ||
# branch: master | ||
appveyor_repo_tag: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.