-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.azure-pipelines.yml
119 lines (108 loc) · 4.23 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
trigger:
branches:
include:
- '*'
jobs:
- job: "Build"
pool:
vmImage: $(imageName)
variables:
makeOptions: -j2
makeVariables: local=false build=performance
nightly: bsnes-as-$(archName)-$(Build.BuildNumber)
buildVersion: $(Build.BuildId)
steps:
- script: $(setupScript)
displayName: 'setup'
- script: |
echo '#define BSNES_BUILD_NUMBER "'"$(buildVersion)"'"' > bsnes/emulator/version.generated.hpp
make $(makeOptions) -C bsnes target=bsnes $(makeVariables) $(platformOptions)
displayName: 'make bsnes'
- script: |
rm -f bsnes/obj/sfc-*.o bsnes/obj/core.o bsnes/obj/emulator.o || true
make $(makeOptions) -C bsnes target=libretro $(makeVariables) $(platformOptions) || true
displayName: 'make libretro'
- script: $(packageScript)
displayName: 'package'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(nightly)'
artifact: '$(nightly)'
publishLocation: 'pipeline'
strategy:
matrix:
win64:
archName: 'win64'
imageName: 'ubuntu-18.04'
platformOptions: platform=windows compiler="x86_64-w64-mingw32-g++-posix" windres="x86_64-w64-mingw32-windres"
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
artifact: bsnes
packageScript: |
mkdir $(nightly)
mkdir $(nightly)/Database
mkdir $(nightly)/Firmware
cp -a bsnes/out/bsnes $(nightly)/bsnes.exe
cp -a bsnes/out/bsnes_libretro.dll $(nightly)/ || true
cp -a bsnes/out/discord_game_sdk.dll $(nightly)/
cp -a bsnes/Database/* $(nightly)/Database
cp -a shaders $(nightly)/Shaders
cp -a scripts $(nightly)/scripts
cp -a GPLv3.txt $(nightly)
win32:
archName: 'win32'
imageName: 'ubuntu-18.04'
platformOptions: platform=windows arch=x86 compiler="i686-w64-mingw32-g++-posix" windres="i686-w64-mingw32-windres"
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
artifact: bsnes
packageScript: |
mkdir $(nightly)
mkdir $(nightly)/Database
mkdir $(nightly)/Firmware
cp -a bsnes/out/bsnes $(nightly)/bsnes.exe
cp -a bsnes/out/bsnes_libretro.dll $(nightly)/ || true
cp -a bsnes/out/discord_game_sdk.dll $(nightly)/
cp -a bsnes/Database/* $(nightly)/Database
cp -a shaders $(nightly)/Shaders
cp -a scripts $(nightly)/scripts
cp -a GPLv3.txt $(nightly)
macOS:
archName: 'macOS'
imageName: 'macOS-10.14'
platformOptions:
setupScript: |
echo 'macos'
packageScript: |
mkdir $(nightly)
cp -a bsnes/out/bsnes.app $(nightly)/
cp -a bsnes/out/bsnes_libretro.dylib $(nightly)/ || true
cp -a scripts $(nightly)/scripts
cp -a GPLv3.txt $(nightly)/
linux:
archName: 'linux'
imageName: 'ubuntu-18.04'
platformOptions:
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
artifact: bsnes
packageScript: |
mkdir $(nightly)
mkdir $(nightly)/Database
mkdir $(nightly)/Firmware
cp -a bsnes/out/bsnes $(nightly)/bsnes
cp -a bsnes/out/bsnes_libretro.so $(nightly)/ || true
cp -a bsnes/out/discord_game_sdk.so $(nightly)/
cp -a bsnes/Database/* $(nightly)/Database
cp -a shaders $(nightly)/Shaders
cp -a scripts $(nightly)/scripts
cp -a GPLv3.txt $(nightly)