-
Notifications
You must be signed in to change notification settings - Fork 8
110 lines (107 loc) · 3.31 KB
/
build_prod.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
name: Build Prod
on:
push:
pull_request:
jobs:
exploit:
name: Exploit
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
steps:
- uses: actions/checkout@v4
- name: Build Exploit
run: |
cd ./exploit
python3 make-sbcm-patch.py -DPROD -j
cd ..
- name: Upload Exploit
uses: actions/upload-artifact@v4.0.0
with:
name: exploit
path: ./exploit/sbcm
payload:
name: Payloads
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
steps:
- uses: actions/checkout@v4
- name: Build Payload
run: |
cd ./payload
python3 make-payload.py -DPROD -j
mv ./binary ./payload
cd ..
- name: Upload Payload Files
uses: actions/upload-artifact@v4.0.0
with:
name: payload
path: ./payload/payload
- name: Upload Payload .ELF Files
uses: actions/upload-artifact@v4.0.0
with:
name: payload-elf
path: ./payload/build
launcher:
name: Launcher
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
steps:
- uses: actions/checkout@v4
- name: Build Launcher
run: |
cd ./launcher
make
cd ..
- name: Upload Launcher
uses: actions/upload-artifact@v4.0.0
with:
name: launcher
path: ./launcher/launcher.dol
stage1:
name: Stage 1 and 0
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
steps:
- uses: actions/checkout@v4
- name: Build Stage 1
run: |
cd ./stage1
python3 make-stage1.py -DPROD -j
cd ..
- name: Upload Stage 1
uses: actions/upload-artifact@v4.0.0
with:
name: stage1
path: ./stage1/build/stage1.bin
- name: Build Stage 0
run: |
cd ./patch
python3 make-patch.py -DPROD -j
cd ..
- name: Upload Stage 0
uses: actions/upload-artifact@v4.0.0
with:
name: stage0
path: ./patch/build/*.txt
package:
name: Package
needs: [exploit, payload, stage1]
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
steps:
- uses: actions/download-artifact@v4.1.7
with:
name: exploit
path: ./payload/sbcm
- uses: actions/download-artifact@v4.1.7
with:
name: payload
path: ./payload/binary
- uses: actions/download-artifact@v4.1.7
with:
name: stage1
path: ./payload
- uses: actions/upload-artifact@v4.0.0
with:
name: packaged-payload-prod
path: ./payload