This repository has been archived by the owner on Jun 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
63 lines (62 loc) · 2.63 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
# https://www.appveyor.com/docs/appveyor-yml/
version: 1.0.3.{build}
image: Visual Studio 2017
platform:
- x86
configuration:
- Release
environment:
EnableNuGetPackageRestore: true
Release_Suffix: -alpha
before_build:
- cmd: nuget update -self
- cmd: git submodule update --init --recursive
- cmd: cd thirdparty\MilliSim
- cmd: npm install
- cmd: cd ..\..
- cmd: npm install -g marked
- cmd: node thirdparty\MilliSim\scripts\nuget_restore.js
- cmd: cd thirdparty\MilliSim
- cmd: node scripts\patch_asminfo.js
- cmd: cd ..\..
- ps: .\thirdparty\MilliSim\scripts\install_monogame.ps1
build_script:
- cmd: msbuild ArcaeaSim.sln /p:Configuration=Release /verbosity:minimal /p:nowarn="1574,1591"
after_build:
- ps: .\thirdparty\MilliSim\scripts\extract-openal-soft.ps1 -destination $Env:APPVEYOR_BUILD_FOLDER\ArcaeaSim\bin\Windows\x86\$Env:CONFIGURATION\
- cmd: marked ./README.md -o ./README.html
- cmd: cd thirdparty\MilliSim
- cmd: node scripts\appveyor_copy_licenses.js
- cmd: cd ..\..
- cmd: del %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\*.xml
- cmd: del %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\*.pdb
# Remove useless SkiaSharp native libraries (we only need the one in x86 dir)
- cmd: del %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\libSkiaSharp.*
- cmd: copy %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\x86\libSkiaSharp.dll %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\
# Remove useless x64 dir (Direct3D branch targets x86)
- cmd: rmdir /s /q %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\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%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\x86
- cmd: 7z a arcaeasim.zip -r %APPVEYOR_BUILD_FOLDER%\ArcaeaSim\bin\Windows\x86\%CONFIGURATION%\*
- cmd: 7z a arcaeasim.zip %APPVEYOR_BUILD_FOLDER%\README.html
- cmd: cd thirdparty\MilliSim
- cmd: 7z a arcaeasim.zip -r docs\licenses\*
- cmd: cd ..\..
- cmd: copy arcaeasim.zip arcaeasim-appveyor-latest.zip
- cmd: copy arcaeasim.zip arcaeasim-appveyor-v%APPVEYOR_BUILD_VERSION%%RELEASE_SUFFIX%.zip
test: off
artifacts:
- path: arcaeasim-appveyor-v%APPVEYOR_BUILD_VERSION%%RELEASE_SUFFIX%.zip
name: WithVersion
- path: arcaeasim-appveyor-latest.zip
name: Static
deploy:
- provider: GitHub
description: ArcaeaSim
auth_token:
secure: u+MFjjY665AT4PHJ2bFMINBLnnnwSj1jLnNeFZoWfeYbomTNSPOmdahffmZa+dRH
artifact: /arcaeasim.+\.zip/
draft: false
prerelease: true
on:
appveyor_repo_tag: true