Skip to content

Commit 7732f65

Browse files
committed
Activate sw builds.
1 parent c39a95c commit 7732f65

File tree

1 file changed

+11
-28
lines changed

1 file changed

+11
-28
lines changed

appveyor.yml

+11-28
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,28 @@
11
environment:
22
matrix:
33
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
4-
vs_ver: 14 2015
4+
platform: Win32
55
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
6-
vs_ver: 15 2017
7-
vs_platform: " Win64"
6+
platform: Win64
87

98
configuration:
109
- Release
1110

1211
cache:
13-
- c:/Users/appveyor/.cppan/storage
14-
15-
# for curl
16-
install:
17-
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
12+
- c:/Users/appveyor/.sw
13+
- .sw
1814

1915
before_build:
20-
- curl -fsS -L -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip
21-
- 7z x cppan.zip
16+
- curl -fsS -L -o dl.zip https://github.com/SoftwareNetwork/binaries/raw/master/client_windows.zip
17+
- 7z x dl.zip
2218
- set PATH=%PATH%;%cd%
2319

24-
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
25-
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_warning_level: 0`n"'
26-
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"'
27-
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nvar_check_jobs: 1`n"'
28-
2920
build_script:
30-
- mkdir build
31-
- mkdir build\bin
32-
- mkdir build\bin\%CONFIGURATION%
33-
- cd build
34-
#- cmd: 'echo local_settings: > cppan.yml'
35-
#- cmd: 'echo generator: %generator% >> cppan.yml'
36-
#- cmd: 'echo use_shared_libs: true >> cppan.yml'
37-
#- cppan --build ..
38-
- cmake .. -G "Visual Studio %vs_ver%%vs_platform%"
39-
#- cmake --build . --config %CONFIGURATION% > build\bin\%CONFIGURATION%\log.txt 2>&1
40-
- cmake --build . --config %CONFIGURATION%
21+
- sw -platform %platform% build
22+
23+
after_build:
24+
- 7z a tesseract.zip %APPVEYOR_BUILD_FOLDER%\.sw\windows_*_msvc_*_shared_Release_*\*.exe %APPVEYOR_BUILD_FOLDER%\.sw\windows_*_msvc_*_shared_Release_*\*.dll
4125

4226
artifacts:
43-
- path: build\bin\%CONFIGURATION%
44-
#- path: build
27+
- path: tesseract.zip
4528
name: tesseract-$(APPVEYOR_BUILD_VERSION)

0 commit comments

Comments
 (0)