forked from dail8859/LuaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
86 lines (63 loc) · 2.42 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
version: 0.9.0.{build}
image: Visual Studio 2017
platform:
- x64
- Win32
configuration:
- Release
- Debug
install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set build_platform=x64
- if "%platform%"=="Win32" set archi=x86
- if "%platform%"=="Win32" set build_platform=Win32
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
build:
parallel: true
verbosity: minimal
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild LuaScript.sln /p:Configuration="%configuration%" /p:Platform="%build_platform%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
$BuildPath = "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:BUILD_PLATFORM)"
Push-AppveyorArtifact "$($BuildPath)\LuaScript.dll" -FileName LuaScript.dll
Push-AppveyorArtifact "$($BuildPath)\Lua.dll" -FileName Lua.dll
if ($env:BUILD_PLATFORM -eq "x64") {
$SdkFileName = "LuaScript_SDK_x64.zip"
}
if ($env:BUILD_PLATFORM -eq "Win32") {
$SdkFileName = "LuaScript_SDK.zip"
}
7z a $SdkFileName "$($env:APPVEYOR_BUILD_FOLDER)\src\lua\src\lauxlib.h"
7z a $SdkFileName "$($env:APPVEYOR_BUILD_FOLDER)\src\lua\src\lua.h"
7z a $SdkFileName "$($env:APPVEYOR_BUILD_FOLDER)\src\lua\src\lua.hpp"
7z a $SdkFileName "$($env:APPVEYOR_BUILD_FOLDER)\src\lua\src\luaconf.h"
7z a $SdkFileName "$($env:APPVEYOR_BUILD_FOLDER)\src\lua\src\lualib.h"
7z a $SdkFileName "$($BuildPath)\Lua.lib"
Push-AppveyorArtifact $SdkFileName -FileName $SdkFileName
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:BUILD_PLATFORM -eq "x64") {
$ZipFileName = "LuaScript_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
}
if ($env:BUILD_PLATFORM -eq "Win32") {
$ZipFileName = "LuaScript_$($env:APPVEYOR_REPO_TAG_NAME).zip"
}
7z a $ZipFileName "$($BuildPath)\LuaScript.dll"
7z a $ZipFileName "$($BuildPath)\Lua.dll"
}
artifacts:
- path: LuaScript*.zip
name: releases
deploy:
provider: GitHub
auth_token:
secure: qrw+nu8dQKFLG+lNmky6buHsvHFwlibAai0r0aJ3MYbyBniONVxvgnmyx37bPh44
artifact: releases
draft: true
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
configuration: Release