-
Notifications
You must be signed in to change notification settings - Fork 75
141 lines (135 loc) · 4.67 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
name: CI
on: [push, pull_request]
jobs:
build_yarg:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build Files
run: |
sed -i '1d' _ark/dx/song_updates/songs_updates.dta
dependencies/python/configure_yarg_build.py
dependencies/linux/ninja
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB3DX-YARG-Updates
path: out/yarg
build_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build ARK
run: |
dependencies/python/configure_build.py xbox
dependencies/linux/ninja
- name: Remove .gitkeep
run: |
find . -name ".gitkeep" -type f -delete
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB3DX-Xbox
path: out/xbox
build_xbox_fub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build ARK
run: |
dependencies/python/configure_build.py xbox --no-updates
dependencies/linux/ninja
- name: Remove .gitkeep
run: |
find . -name ".gitkeep" -type f -delete
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB3DX-Xbox-FUB-Edition
path: out/xbox
build_ps3:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build ARK
run: |
python dependencies/python/configure_build.py ps3
dependencies/windows/ninja.exe
- name: Build PKG
run: |
$sha_short="$(git rev-parse --short HEAD)".ToUpper()
$content="RB3DXNITE"
dependencies/windows/RB3DXBuildPkgPS3.exe out/ps3 usa ($content + $sha_short) .
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB3DX-PS3
path: '*.pkg'
build_wii:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set env
run: |
mkdir ./build
mkdir platform/wii/files
mkdir platform/wii/files/gen
cp dependencies/wii_patcher/main_wii.hdr platform/wii/files/gen/main_wii.hdr
mkdir platform/wii/sys
truncate -s 13068128 platform/wii/sys/main.dol
truncate -s 22353239 platform/wii/files/gen/main_wii_0.ark
truncate -s 5721833 platform/wii/files/gen/main_wii_1.ark
truncate -s 24584681 platform/wii/files/gen/main_wii_2.ark
truncate -s 266057007 platform/wii/files/gen/main_wii_3.ark
truncate -s 688887924 platform/wii/files/gen/main_wii_4.ark
truncate -s 107950925 platform/wii/files/gen/main_wii_5.ark
truncate -s 468328063 platform/wii/files/gen/main_wii_6.ark
truncate -s 22352016 platform/wii/files/gen/main_wii_7.ark
truncate -s 1983799220 platform/wii/files/gen/main_wii_8.ark
truncate -s 300667016 platform/wii/files/gen/main_wii_9.ark
- name: Build ARK
run: |
dependencies/python/configure_build.py wii
dependencies/linux/ninja
- uses: edgarrc/action-7z@v1
with:
args: 7z a -t7z -mx=9 build.7z ./build/
- name: Configure Tools
run: |
7z x dependencies/wii_patcher/wiimmfi-patcher-v7.5.zip
mv wiimmfi-patcher-v7.5 rb3dx_wii_patcher
mkdir rb3dx_wii_patcher/wii_patch_files
mkdir rb3dx_wii_patcher/wii_patch_files/gen
cp out/wii/files/gen/main_wii.hdr rb3dx_wii_patcher/wii_patch_files/gen/main_wii.hdr
cp out/wii/files/gen/main_wii_10.ark rb3dx_wii_patcher/wii_patch_files/gen/main_wii_10.ark
cp dependencies/wii_patcher/patch-images.sh rb3dx_wii_patcher/patch-images.sh
cp dependencies/wii_patcher/setup.sh rb3dx_wii_patcher/bin/setup.sh
- name: Remove .gitkeep
run: |
find . -name ".gitkeep" -type f -delete
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: RB3DX-Wii-Patcher
path: rb3dx_wii_patcher