This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
forked from GP-S/bsnes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
114 lines (104 loc) · 3.74 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
trigger:
branches:
include:
- '*'
strategy:
matrix:
win64:
archName: 'win64'
imageName: 'ubuntu-18.04'
setupScript: |
echo 'win64'
set -e
sudo apt-get update
sudo apt-get -qq install -y --no-install-recommends ca-certificates make g++-mingw-w64-x86-64
compileScript: |
echo '#define BSNES_BUILD_NUMBER "'"$(buildVersion)"'"' > bsnes/emulator/version.generated.hpp
make $(makeOptions) -C bsnes $(makeVariables) platform=windows compiler="x86_64-w64-mingw32-g++-posix" windres="x86_64-w64-mingw32-windres"
artifact: bsnes
packageScript: |
mkdir $(nightly)
mkdir $(nightly)/Database
mkdir $(nightly)/Firmware
cp -a bsnes/out/bsnes $(nightly)/bsnes.exe
cp -a bsnes/out/discord_game_sdk.dll $(nightly)/
cp -a bsnes/Database/* $(nightly)/Database
cp -a shaders $(nightly)/Shaders
cp -a GPLv3.txt $(nightly)
cp -a *.as $(nightly)
win32:
archName: 'win32'
imageName: 'ubuntu-18.04'
setupScript: |
echo 'win32'
set -e
sudo apt-get update
sudo apt-get -qq install -y --no-install-recommends ca-certificates make g++-mingw-w64-i686
compileScript: |
echo '#define BSNES_BUILD_NUMBER "'"$(buildVersion)"'"' > bsnes/emulator/version.generated.hpp
make $(makeOptions) -C bsnes $(makeVariables) platform=windows arch=x86 compiler="i686-w64-mingw32-g++-posix" windres="i686-w64-mingw32-windres"
artifact: bsnes
packageScript: |
mkdir $(nightly)
mkdir $(nightly)/Database
mkdir $(nightly)/Firmware
cp -a bsnes/out/bsnes $(nightly)/bsnes.exe
cp -a bsnes/out/discord_game_sdk.dll $(nightly)/
cp -a bsnes/Database/* $(nightly)/Database
cp -a shaders $(nightly)/Shaders
cp -a GPLv3.txt $(nightly)
cp -a *.as $(nightly)
macOS:
archName: 'macOS'
imageName: 'macOS-10.14'
setupScript: |
echo 'macos'
compileScript: |
echo '#define BSNES_BUILD_NUMBER "'"$(buildVersion)"'"' > bsnes/emulator/version.generated.hpp
make $(makeOptions) -C bsnes $(makeVariables)
packageScript: |
mkdir $(nightly)
cp -a bsnes/out/bsnes.app $(nightly)/
cp -a GPLv3.txt $(nightly)/
cp -a *.as $(nightly)/
linux:
archName: 'linux'
imageName: 'ubuntu-18.04'
setupScript: |
echo 'linux'
set -e
sudo apt-get update
sudo apt-get -y install --no-upgrade --no-install-recommends build-essential libgtk2.0-dev libpulse-dev mesa-common-dev libgtksourceview2.0-dev libcairo2-dev libsdl2-dev libxv-dev libao-dev libopenal-dev libudev-dev
compileScript: |
echo '#define BSNES_BUILD_NUMBER "'"$(buildVersion)"'"' > bsnes/emulator/version.generated.hpp
make $(makeOptions) -C bsnes $(makeVariables)
artifact: bsnes
packageScript: |
mkdir $(nightly)
mkdir $(nightly)/Database
mkdir $(nightly)/Firmware
cp -a bsnes/out/bsnes $(nightly)/bsnes
cp -a bsnes/out/discord_game_sdk.so $(nightly)/
cp -a bsnes/Database/* $(nightly)/Database
cp -a shaders $(nightly)/Shaders
cp -a GPLv3.txt $(nightly)
cp -a *.as $(nightly)
variables:
makeOptions: -j4
makeVariables: local=false build=performance
nightly: bsnes-angelscript-$(archName)-$(Build.SourceVersion)
buildVersion: $(Build.BuildId)
pool:
vmImage: $(imageName)
steps:
- script: $(setupScript)
displayName: 'setup'
- script: $(compileScript)
displayName: 'make'
- script: $(packageScript)
displayName: 'package'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(nightly)'
artifact: '$(nightly)'
publishLocation: 'pipeline'