forked from LiXizhi/NPLRuntime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
100 lines (76 loc) · 3.21 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: 1.0.{build}
clone_folder: c:\projects\nplruntime
image: Visual Studio 2017
environment:
matrix:
- addresss_mode: 32
installer_name: C:\projects\nplruntime\installer\nplruntime_x86.nsi
zip_name: NPLRuntime_32bit.zip
zip_path: C:\projects\nplruntime\ParaWorld\bin32
exe_path: installer\nplruntime_v1.0-alpha.10_Windows_x86.exe
- addresss_mode: 64
installer_name: C:\projects\nplruntime\installer\nplruntime_x64.nsi
zip_name: NPLRuntime_64bit.zip
zip_path: C:\projects\nplruntime\ParaWorld\bin64
exe_path: installer\nplruntime_v1.0-alpha.10_Windows_x64.exe
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
install:
############################################################################
# Install a recent CMake
############################################################################
# - mkdir bin
# - cd bin
# - set CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.0-win64-x64.zip"
# - appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
# - 7z x cmake.zip -oC:\projects\nplruntime\bin > nul
# - move C:\projects\nplruntime\bin\cmake-* C:\projects\nplruntime\bin\cmake # Move to a version-agnostic directory
# - set PATH=C:\projects\nplruntime\bin\cmake\bin;%PATH%
# - cmake --version
#----------------------------#
# manually install boost #
#----------------------------#
- cmd: >-
appveyor DownloadFile https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.7z -FileName "C:\projects\nplruntime\Server\trunk\boost.7z"
7z x C:\projects\nplruntime\Server\trunk\boost.7z -oC:\Libraries\
git submodule init
git submodule update --init --recursive
del C:\projects\nplruntime\npl_packages\main\* /q
rmdir "C:/Program Files/MySQL" /s /q
rmdir "C:/Program Files/PostgreSQL" /s /q
cd C:\Libraries\boost_1_77_0\
set BOOST_ROOT=C:\Libraries\boost_1_77_0
bootstrap.bat
b2 address-model=%addresss_mode% runtime-link=static threading=multi variant=release --with-thread --with-date_time --with-filesystem --with-system --with-chrono --with-serialization --with-iostreams --with-regex stage
dir %BOOST_ROOT%\stage\lib
cd C:\projects\nplruntime
mkdir bin\client
cd bin\client
if "%addresss_mode%" == "64" ( cmake ../../Client -DCMAKE_GENERATOR_PLATFORM=x64 ) else ( cmake ../../Client )
build_script:
- cmd: >-
msbuild c:\projects\nplruntime\bin\client\CLIENT.sln /verbosity:minimal /property:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
7z a %zip_name% %zip_path%
"C:/Program Files (x86)/NSIS/makensis" %installer_name%
test: off
artifacts:
- path: installer\nplruntime_v1.0-alpha.10_Windows_x86.exe
name: execute_32
- path: installer\nplruntime_v1.0-alpha.10_Windows_x64.exe
name: execute_64
- path: NPLRuntime_32bit.zip
name: binary_32
- path: NPLRuntime_64bit.zip
name: binary_64
deploy:
- provider: GitHub
on:
branch: master
tag: v1.0-alpha.10
release: v1.0-alpha.10(Windows)
auth_token:
secure: bBIY9/rjpoYwv0hKiworA8dihkgoZ+L7y4kM8kuYtJw1Z3XM51gdbDUIotOduIza
artifact: execute_32, binary_32, execute_64, binary_64
prerelease: true
on_finish:
- cmd: