-
Notifications
You must be signed in to change notification settings - Fork 5
167 lines (164 loc) · 6.32 KB
/
main.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
name: GitHub Actions Build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
platform: [Win32]
buildtype: [Release]
steps:
- name: setup-msbuild
uses: microsoft/[email protected]
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: ThirteenAG/update-tags@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Configure build
shell: cmd
run: ./premake5.bat
- name: Build xrd
shell: cmd
run: msbuild -m build/${{github.event.repository.name}}.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}
- name: Build xrd11
shell: cmd
run: |
msbuild -m build/XboxRainDropletsWrapper.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=Win32
msbuild -m build/XboxRainDropletsWrapper.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=Win64
- name: Download Ultimate ASI Loader x86
uses: robinraju/[email protected]
with:
repository: "ThirteenAG/Ultimate-ASI-Loader"
tag: "Win32-latest"
fileName: "version-Win32.zip"
- name: Download Ultimate ASI Loader x64
uses: robinraju/[email protected]
with:
repository: "ThirteenAG/Ultimate-ASI-Loader"
tag: "x64-latest"
fileName: "dinput8-x64.zip"
- name: Download XboxRainDroplets Plugins
uses: robinraju/[email protected]
with:
repository: "ThirteenAG/WidescreenFixesPack"
tag: "xrd"
fileName: "*"
- name: Unpack dependencies
run: |
7z x version-Win32.zip -obin/ -y
7z x dinput8-x64.zip -obin/ -y
7z x PCSX2F.XboxRainDroplets.zip -obin/ -y
7z x PPSSPP.XboxRainDroplets.zip -obin/ -y
del version-Win32.zip
del dinput8-x64.zip
del PCSX2F.XboxRainDroplets.zip
del PPSSPP.XboxRainDroplets.zip
- name: Pack binaries
shell: cmd
run: release.bat
- name: Upload artifacts to actions
uses: actions/[email protected]
with:
path: ./bin/*.zip
- name: GTAIV.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: gtaiv
artifacts: bin/GTAIV.XboxRainDroplets.zip
- name: Mafia.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: mafia
artifacts: bin/Mafia.XboxRainDroplets.zip
- name: Manhunt.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: manhunt
artifacts: bin/Manhunt.XboxRainDroplets.zip
- name: MaxPayne.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: maxpayne
artifacts: bin/MaxPayne.XboxRainDroplets.zip
- name: MaxPayne2.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: maxpayne2
artifacts: bin/MaxPayne2.XboxRainDroplets.zip
- name: MaxPayne3.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: maxpayne3
artifacts: bin/MaxPayne3.XboxRainDroplets.zip
- name: NFSCarbon.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nfsc
artifacts: bin/NFSCarbon.XboxRainDroplets.zip
- name: NFSMostWanted.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nfsmw
artifacts: bin/NFSMostWanted.XboxRainDroplets.zip
- name: NFSUnderground2.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nfsu2
artifacts: bin/NFSUnderground2.XboxRainDroplets.zip
- name: Scarface.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: scarface
artifacts: bin/Scarface.XboxRainDroplets.zip
- name: Driv3r.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: driv3r
artifacts: bin/Driv3r.XboxRainDroplets.zip
- name: DriverParallelLines.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: driverpl
artifacts: bin/DriverParallelLines.XboxRainDroplets.zip
- name: PPSSPP.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ppsspp
artifacts: bin/PPSSPP.XboxRainDroplets.zip, bin/PPSSPP.XboxRainDroplets64.zip
- name: PCSX2F.XboxRainDroplets
uses: ./.github/workflows/release_tag
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: pcsx2f
artifacts: bin/PCSX2F.XboxRainDroplets64.zip