-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (61 loc) · 2.74 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
# https://www.appveyor.com/docs/appveyor-yml/
version: 0.4.0.{build}
image: Visual Studio 2017
platform:
- x86
configuration:
- Release
environment:
EnableNuGetPackageRestore: true
Release_Suffix: -alpha
NuGet_API_Key:
secure: izZ+2u3Vp3ykQNtVQqYtsmP4SoCO3vZ0gUp4zFCRsa0pBNgdkX354tc7VItMD5yh
before_build:
- cmd: nuget update -self
- cmd: git submodule update --init --recursive
- cmd: npm install
- cmd: npm install -g marked
- ps: .\scripts\nuget_restore.ps1
- cmd: node scripts\patch_asminfo.js
- ps: .\scripts\install_monogame.ps1
build_script:
- cmd: msbuild ./src/TheaterDaysSim.sln /p:Configuration=Release /verbosity:minimal /p:nowarn="1574,1591"
#- cmd: node scripts\appveyor_nuget_pack.js
after_build:
- ps: .\scripts\extract-openal-soft.ps1 -destination $Env:APPVEYOR_BUILD_FOLDER\src\TheaterDays.Direct3D11\bin\Windows\x86\$Env:CONFIGURATION\
- cmd: marked ./README.md -o ./README.html
# - cmd: node scripts\appveyor_copy_licenses.js
- cmd: del %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\*.xml
- cmd: del %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\*.pdb
# Remove useless SkiaSharp native libraries (we only need the one in x86 dir)
- cmd: del %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\libSkiaSharp.*
- cmd: copy %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\x86\libSkiaSharp.dll %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\
# Remove useless x64 dir (Direct3D branch targets x86)
- cmd: rmdir /s /q %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\x64
# x86 dir is not need either (and we don't have FFmpeg here)
- cmd: rmdir /s /q %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\x86
- cmd: 7z a tdsim.zip -r %APPVEYOR_BUILD_FOLDER%\src\TheaterDays.Direct3D11\bin\Windows\x86\%CONFIGURATION%\*
- cmd: 7z a tdsim.zip %APPVEYOR_BUILD_FOLDER%\README.html
# - cmd: 7z a millisim.zip -r docs\licenses\*
- cmd: copy tdsim.zip tdsim-appveyor-latest.zip
- cmd: copy tdsim.zip tdsim-appveyor-v%APPVEYOR_BUILD_VERSION%%RELEASE_SUFFIX%.zip
test: off
artifacts:
- path: tdsim-appveyor-v%APPVEYOR_BUILD_VERSION%%RELEASE_SUFFIX%.zip
name: WithVersion
- path: tdsim-appveyor-latest.zip
name: Static
- path: '*.nupkg'
name: 'NuGet Packages'
deploy:
- provider: GitHub
description: MilliSim
auth_token:
secure: u+MFjjY665AT4PHJ2bFMINBLnnnwSj1jLnNeFZoWfeYbomTNSPOmdahffmZa+dRH
artifact: /tdsim.+\.zip/
draft: false
prerelease: true
on:
appveyor_repo_tag: true
# after_deploy:
# #- cmd: node scripts\appveyor_deploy_nuget.js