forked from Amaroq7/SPMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (62 loc) · 1.98 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
version: 0.0.1-{build}
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2017
platform: x64
build:
parallel: true
verbosity: detailed
environment:
matrix:
- LINK_TYPE: dynamic
- LINK_TYPE: static
artifacts:
- path: spmod-win32-$(APPVEYOR_REPO_TAG_NAME)-msvc*-$(LINK_TYPE).7z
name: spmod-build
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;C:\Program Files\Meson;%PATH%
- git submodule update --init --recursive
- mkdir dlls
- cd ..
- ps: Start-FileDownload 'https://github.com/mesonbuild/meson/releases/download/0.47.1/meson-0.47.1-64.msi'
- start /wait msiexec.exe /i meson-0.47.1-64.msi /quiet /qn /norestart /log install.log
# Install ambuild
- git clone https://github.com/alliedmodders/ambuild.git
- cd ambuild
- python setup.py install
# Build SourcePawn lib
- cd ..\SPMod\include\sourcepawn
- mkdir build
- cd build
- python ..\configure.py --enable-optimize --build=core
- ambuild
- move vm\sourcepawn.jit.x86\sourcepawn.jit.x86.dll ..\..\..\dlls
- move compiler\spcomp\spcomp.exe ..\..\..\scripts
- cd ..\..\..
build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- mkdir build
- cd build
- meson .. . --buildtype plain -D windebug=false -D linktype=%LINK_TYPE%
- meson configure
- ninja
- cd ..
- move build\src\spmod_mm.dll dlls
- 7z a -t7z -mm=LZMA:d256m:fb64 -mx9 spmod-win32-%APPVEYOR_REPO_TAG_NAME%-msvc%APPVEYOR_BUILD_WORKER_IMAGE:~-4%-%LINK_TYPE%.7z dlls scripts
deploy:
description: ''
provider: GitHub
auth_token:
secure: OHpFkNuODntvGsZ4TURitsr5WB5EtsLkOBcqpEX2AEEhP3qsYJAePoUW8CtDB86K
artifact: spmod-build
draft: true
prerelease: false
tag: $(appveyor_repo_tag_name)
on:
branch: /^v\d+\.\d+(\.\d+)?(-\S*)?$/
appveyor_repo_tag: true