forked from FunkinModdingPlus/ModdingPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
177 lines (170 loc) · 6.08 KB
/
azure-pipelines.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
jobs:
# Neko
- job: BuildCppLinux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo add-apt-repository ppa:haxe/releases -y
sudo apt update -y
sudo apt install haxe -y
displayName: 'Install Haxe'
- script: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
mkdir ~/artifacts
haxelib install lime
haxelib run lime setup linux
haxelib install openfl
haxelib install flixel
haxelib --always run lime setup flixel
haxelib install flixel-tools
haxelib install flixel-ui
haxelib install tjson
haxelib install json2object
haxelib install uniontypes
haxelib install hxjsonast
haxelib install linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
echo $runId > VERSION
env:
runId : $(Build.BuildNumber)
displayName: 'Install haxelibs'
- script: haxelib run lime build linux
displayName: 'Compile'
- script: tar -czf bin.tar.gz 'export/release/linux/bin'
displayName: 'Archive'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'cppLinuxOutput'
targetPath: bin.tar.gz
- job: BuildMac
pool:
vmImage: 'macOS-10.14'
steps:
- script: brew install haxe
displayName: 'Install Haxe'
- script: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib install flixel-tools
haxelib install flixel-ui
haxelib install tjson
haxelib install json2object
haxelib install uniontypes
haxelib install hxjsonast
haxelib install linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
echo $runId > VERSION
env:
runId : $(Build.BuildNumber)
displayName: 'Install haxelibs'
- script: haxelib run lime build mac
displayName: 'Compile'
- script: |
[ -d "export/release/mac/bin" ] && echo "Directory neko exists."
[ -d "export/release" ] && echo "Directory release exists."
[ -d "export/release/mac" ] && echo "Directory mac exists."
[ -d "export/release/windows/bin" ] && echo "Directory windows exists."
tar -czf bin.tar.gz 'export/release/macos/bin'
displayName: 'Archive'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'cppMacOutput'
targetPath: bin.tar.gz
- job: BuildCppWindows
pool:
vmImage: 'windows-2019'
steps:
- powershell: |
choco install --no-progress haxe -y
$nekoPath = (Get-ChildItem C:/ProgramData/chocolatey/lib/neko/*/neko.dll -Recurse).Directory
echo "##vso[task.setvariable variable=NEKOPATH]$nekoPath"
displayName: 'Install Haxe'
- script: |
haxelib setup C:/haxelib
haxelib install hxcpp > nul
haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib run flixel-tools setup
haxelib install flixel-ui
haxelib install tjson
haxelib install json2object
haxelib install uniontypes
haxelib install hxjsonast
haxelib install linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
echo $env:runId > VERSION
env:
runId : $(Build.BuildNumber)
displayName: 'Install haxelibs'
- script: haxelib run lime build cpp
displayName: 'Compile'
- script: tar -czf bin.tar.gz export/release/windows/bin
displayName: 'Archive'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'cppWindowsOutput'
targetPath: 'export/release/windows/bin'
- job: BuildHtml5
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
sudo add-apt-repository ppa:haxe/releases -y
sudo apt update -y
sudo apt install haxe -y
displayName: 'Install Haxe'
- script: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
mkdir ~/artifacts
haxelib install lime
haxelib run lime setup linux
haxelib install openfl
haxelib install flixel
haxelib --always run lime setup flixel
haxelib install flixel-tools
haxelib install flixel-ui
haxelib install tjson
haxelib install json2object
haxelib install uniontypes
haxelib install hxjsonast
haxelib install linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
echo $env:runId > VERSION
env:
runId : $(Build.BuildNumber)
displayName: 'Install haxelibs'
- script: haxelib run lime build html5
displayName: 'Compile'
- script: tar -czf bin.tar.gz 'export/release/html5/bin'
displayName: 'Archive'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'html5'
targetPath: bin.tar.gz