-
-
Notifications
You must be signed in to change notification settings - Fork 10
181 lines (154 loc) · 5.57 KB
/
CI.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
name: CI
on:
repository_dispatch:
types: [Component_update]
push:
branches:
- '*'
tags:
- 'v*'
paths-ignore:
- '**.MD'
- '**.gitkeep'
- '**.gitignore'
workflow_dispatch:
inputs:
debug:
type: boolean
description: compile with debugging functionality
printf:
type: choice
description: wich debugging messages variant to use
options:
- NONE
- PRINTF
- EE_SIO
- SCR
- UDPTTY
jobs:
build:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- name: Install dependencies
run: |
apk add build-base git p7zip
- uses: actions/checkout@v3
- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --prune --unshallow
- name: compilation opts
if: github.event.inputs.debug == true
run: |
echo "DEBUG=$(echo DEBUG=1)" >> $GITHUB_ENV
- name: Compile PS2 build
run: |
make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PS2/ ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }}
- name: Compile PS2 MX4SIO build
run: |
make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PS2_MX4SIO/ MX4SIO=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }}
- name: Compile PSX build
run: |
make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PSX/ PSX=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }}
- name: Compile PS2 HDD build
run: |
make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PS2_HDD/ HDD=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }}
- name: Compile system 2x6 build
run: |
make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=NAMCO_ARCADE_2x6/ COH=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }}
- name: list
run: |
git ls-files -i --exclude-standard -c
- name: prepare release folder
run: |
cp LICENSE release/LICENSE.TXT
cp README.md release/README.md
mv PS2/ release/PS2/
mv PSX/ release/PSX/
mv PS2_HDD/ release/PS2_HDD/
mv PS2_MX4SIO/ release/PS2_MX4SIO/
mv NAMCO_ARCADE_2x6/ release/NAMCO_ARCADE_2x6/
echo "The executables found inside this folder are specifically crafted to boot in a namco arcade system 246 or 256 (COH-H PS2 model) running these on any other PS2 type will result in a black scren!">release/NAMCO_ARCADE_2x6/WARNING.TXT
- name: pack release
run: |
CSH=${GITHUB_SHA::7}
DATE=$(date "+%d-%m-%Y")
TARGET="PS2BBL[$DATE]-[$CSH]"
cp -r release/ $TARGET/
7z a -t7z PS2BBL.7z $TARGET/*
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: PS2BBL
path: |
release/*
- name: Create release
if: github.ref == 'refs/heads/main'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Latest development build"
files: |
PS2BBL.7z
opentuna:
runs-on: ubuntu-latest
needs: [build]
container: ps2dev/ps2dev:latest
steps:
- name: Install dependencies
run: |
apk add build-base git p7zip
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: list
run: |
ls -R
- name: clone
run: |
git clone --depth 1 -b PS2BBL https://github.com/israpps/Funtuna-Fork
- name: update binaries
run: |
cp PS2BBL/PS2/COMPRESSED_PS2BBL.ELF Funtuna-Fork/installer/INSTALLER_CONTENTS/BOOT/BOOT.ELF
cp PS2BBL/PS2BBL/CONFIG.INI Funtuna-Fork/installer/INSTALLER_CONTENTS/PS2BBL/CONFIG.INI
- name: update bundled software
run: |
wget https://github.com/israpps/wLaunchELF_ISR/releases/download/latest/BOOT-EXFAT.ELF -O Funtuna-Fork/installer/INSTALLER_CONTENTS/BOOT/ULE.ELF
- name: compile
run: |
cd Funtuna-Fork/installer
make clean all
- name: list
run: |
ls -R
- name: pack release
run: |
mkdir release
CSH=${GITHUB_SHA::7}
DATE=$(date "+%d-%m-%Y")
TARGET="PS2BBL_OpenTuna_installer-[$DATE]-[$CSH]"
cp Funtuna-Fork/installer/bin/PS2BBL_OpenTuna_Installer.ELF release/PS2BBL_OpenTuna_Installer.ELF
cp PS2BBL/LICENSE.TXT release/LICENSE.TXT
echo "PS2BBL and installer by Matias Israelson">release/CREDITS.TXT
echo "OpenTuna by Alexander Lopez Parrado">>release/CREDITS.TXT
echo "If you bought this software you have been SCAMMED.">>release/CREDITS.TXT
echo "https://github.com/israpps/PlayStation2-Basic-BootLoader">>release/CREDITS.TXT
cp -r release/ $TARGET/
7z a -t7z PS2BBL_OpenTuna_Installer.7z $TARGET/*
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: PS2BBL
path: |
release/PS2BBL_OpenTuna_Installer.ELF
- name: Create release
if: github.ref == 'refs/heads/main'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "opentuna"
title: "Latest PS2BBL + OpenTuna"
files: |
PS2BBL_OpenTuna_Installer.7z