-
Notifications
You must be signed in to change notification settings - Fork 23
204 lines (191 loc) · 6.87 KB
/
build.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
name: CI
on: [push, pull_request]
jobs:
build_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x dependencies/linux/arkhelper
chmod +x dependencies/linux/dtab
chmod +x dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3/PS2 files
run: |
find . -name "*.*_ps3" -type f -delete
find . -name "*.*_ps2" -type f -delete
- name: Build ARK
run: |
dependencies/linux/arkhelper dir2ark ./_ark ./_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Remove Excess files
run: |
find . -name "*.txt" -type f -delete
find . -name "*.zbm" -type f -delete
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB2DX-Xbox
path: _build/xbox
build_ps3:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
pip install gitpython
pip install mido
pip install requests
- name: fetch TrueAncestor PKG Repacker
run: |
python dependencies/dev_scripts/download_ta_pkg_repacker.py
- name: Remove Xbox/PS2 files
run: |
Get-ChildItem _ark/ -recurse -include *.*_xbox | remove-item
Get-ChildItem _ark/ -recurse -include *.*_ps2 | remove-item
- name: Build ARK
run: |
dependencies/windows/arkhelper.exe dir2ark _ark _build/ps3/USRDIR/gen -n "patch_ps3" -e -v 5
- name: Build PKG
run: |
$sha_short="$(git rev-parse --short HEAD)".ToUpper()
$content="UP0006-BLUS30147_00-RB2DXNITE"
$packageversion="2.00"
dependencies/ta_pkg_repacker_tools/make_package_npdrm_retail.exe --k-licensee 0x00000000000000000000000000000000 --drm-type Local --package-version $packageversion --content-type GameData --content-id ($content + $sha_short) dependencies/ta_pkg_repacker_tools/package.conf _build/ps3
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB2DX-PS3
path: '*.pkg'
build_ps2_ce:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
lfs: 'true'
- name: checkoutLFS
uses: actions/checkout@v4
- run: git lfs pull
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x dependencies/linux/arkhelper
chmod +x dependencies/linux/dtab
chmod +x dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3/Xbox files
run: |
find . -name "*.*_ps3" -type f -delete
find . -name "*.*_xbox" -type f -delete
- name: Download PS2 files
run: |
python dependencies/dev_scripts/download_ps2_action.py
- name: Add PS2 files to _ark
run: |
rsync -a ./_ps2_files/* ./_ark
rsync -a ./_ark_ps2/* ./_ark
rm -rf ./_ark/.git
rm -rf ./_ark/README.md
- name: Build ARK
run: |
dependencies/linux/arkhelper dir2ark ./_ark ./_build/ps2/gen -n "MAIN" -e -v 4 -s 4073741823
- name: Remove Excess files
run: |
find . -name "*.txt" -type f -delete
find . -name "*.zbm" -type f -delete
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB2DXCE-PS2
path: _build/ps2
build_ps2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x dependencies/linux/arkhelper
chmod +x dependencies/linux/dtab
chmod +x dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3/Xbox files
run: |
find . -name "*.*_ps3" -type f -delete
find . -name "*.*_xbox" -type f -delete
- name: Download PS2 files
run: |
python dependencies/dev_scripts/download_ps2_action.py
- name: Add PS2 files to _ark
run: |
rsync -a ./_ps2_files/* ./_ark
rsync -a ./_ark_ps2/* ./_ark
rm -rf ./_ark/.git
rm -rf ./_ark/README.md
rm -rf ./_ark/songs/afterlife
rm -rf ./_ark/songs/getclean
rm -rf ./_ark/songs/kidsinamerica
rm -rf ./_ark/songs/mountainsong
rm -rf ./_ark/songs/shacklersrevenge
rm -rf ./_ark/songs/songs.dta
rm -rf ./_ark/songs/songs_customs.dta
mv ./_ark/songs/songs_full.dta ./_ark/songs/songs.dta
- name: Download/Copy RB2 Songs
run: |
chmod +x dependencies/linux/gdrive
dependencies/linux/gdrive account import dependencies/linux/gdrive_key.tar
dependencies/linux/gdrive files download 1R6mEALNi6ZByyzjV3ohvqY4U69GcEoHe --recursive --destination ./
mv ./rb2dxsongs/* ./_ark/songs -f
- name: Build ARK
run: |
dependencies/linux/arkhelper dir2ark ./_ark ./_build/ps2/gen -n "MAIN" -e -v 4 -s 4073741823
- name: Remove Excess files
run: |
find . -name "*.txt" -type f -delete
find . -name "*.zbm" -type f -delete
rm -rf ./_ark
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB2DX-PS2
path: _build/ps2