Activate sw builds.

This commit is contained in:
Egor Pugin 2019-01-08 23:33:34 +03:00
parent c39a95ca57
commit 7732f65b4a

View File

@ -1,45 +1,28 @@
environment: environment:
matrix: matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
vs_ver: 14 2015 platform: Win32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
vs_ver: 15 2017 platform: Win64
vs_platform: " Win64"
configuration: configuration:
- Release - Release
cache: cache:
- c:/Users/appveyor/.cppan/storage - c:/Users/appveyor/.sw
- .sw
# for curl
install:
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
before_build: before_build:
- curl -fsS -L -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip - curl -fsS -L -o dl.zip https://github.com/SoftwareNetwork/binaries/raw/master/client_windows.zip
- 7z x cppan.zip - 7z x dl.zip
- set PATH=%PATH%;%cd% - set PATH=%PATH%;%cd%
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_warning_level: 0`n"'
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"'
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nvar_check_jobs: 1`n"'
build_script: build_script:
- mkdir build - sw -platform %platform% build
- mkdir build\bin
- mkdir build\bin\%CONFIGURATION% after_build:
- cd build - 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\windows_*_msvc_*_shared_Release_*\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\windows_*_msvc_*_shared_Release_*\*.dll
#- cmd: 'echo local_settings: > cppan.yml'
#- cmd: 'echo generator: %generator% >> cppan.yml'
#- cmd: 'echo use_shared_libs: true >> cppan.yml'
#- cppan --build ..
- cmake .. -G "Visual Studio %vs_ver%%vs_platform%"
#- cmake --build . --config %CONFIGURATION% > build\bin\%CONFIGURATION%\log.txt 2>&1
- cmake --build . --config %CONFIGURATION%
artifacts: artifacts:
- path: build\bin\%CONFIGURATION% - path: tesseract.zip
#- path: build
name: tesseract-$(APPVEYOR_BUILD_VERSION) name: tesseract-$(APPVEYOR_BUILD_VERSION)