-
Notifications
You must be signed in to change notification settings - Fork 4
149 lines (136 loc) · 4.89 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
name: CI
on: [push, pull_request]
jobs:
lrb_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python lrb/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 lrb/dependencies/linux/arkhelper
chmod +x lrb/dependencies/linux/dtab
chmod +x lrb/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
lrb/dependencies/linux/arkhelper dir2ark lrb/_ark lrb/_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: LRB-Patch-Xbox
path: lrb/_build/xbox
lrb_ps3:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python lrb/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 lrb/dependencies/dev_scripts/download_ta_pkg_repacker.py
- name: Remove Xbox files
run: |
Get-ChildItem lrb/_ark/ -recurse -include *.*_xbox | remove-item
- name: Build ARK
run: |
lrb/dependencies/windows/arkhelper.exe dir2ark lrb/_ark lrb/_build/ps3/USRDIR/gen -n "patch_ps3" -e -v 5
- name: Build PKG
run: |
$sha_short="$(git rev-parse --short HEAD)".ToUpper()
$content="UP1018-BLUS30382_00-LRBPATCHH"
$packageversion="1.01"
lrb/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) lrb/dependencies/ta_pkg_repacker_tools/package.conf lrb/_build/ps3
- name: Upload result
uses: actions/upload-artifact@v3
with:
name: LRB-Patch-PS3
path: '*.pkg'
tbrb_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python tbrb/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 tbrb/dependencies/linux/arkhelper
chmod +x tbrb/dependencies/linux/dtab
chmod +x tbrb/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
tbrb/dependencies/linux/arkhelper dir2ark tbrb/_ark tbrb/_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: TBRB-Patch-Xbox
path: tbrb/_build/xbox
gdrb_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python gdrb/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 gdrb/dependencies/linux/arkhelper
chmod +x gdrb/dependencies/linux/dtab
chmod +x gdrb/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
gdrb/dependencies/linux/arkhelper dir2ark gdrb/_ark gdrb/_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: GDRB-Patch-Xbox
path: gdrb/_build/xbox