forked from pret/pokered
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 1.92 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
name: CI
permissions: write-all
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: Build BPS patches
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install libpng
run: sudo apt-get install libpng-dev
- name: Checkout rgbds
uses: actions/checkout@master
with:
path: rgbds
ref: v0.5.2
repository: gbdev/rgbds
- name: Install rgbds
working-directory: rgbds
run: sudo make install
- name: Build and rename ROMs
run: |
make -j$(nproc)
mv pokered.gbc pokered-ru.gbc
mv pokeblue.gbc pokeblue-ru.gbc
- name: Clone and build pokered ROM
run: |
git clone https://github.com/pret/pokered.git
cd pokered
git checkout 6c945a6b
make -j${nproc}
- name: Move original ROMs to parent folder and remove pokered
run: |
cd pokered
mv pokered.gbc ..
mv pokeblue.gbc ..
cd ..
rm -rf pokered
- name: Remove rgbds
run: |
rm -rf rgbds
- name: Install unzip, download Floating IPS and create patches
run: |
sudo apt-get install unzip
wget "https://github.com/Alcaro/Flips/releases/latest/download/flips-linux.zip"
unzip flips-linux.zip
rm flips-linux.zip
chmod +x flips
./flips -c -b pokered.gbc pokered-ru.gbc pokered-ru.bps
./flips -c -b pokeblue.gbc pokeblue-ru.gbc pokeblue-ru.bps
- name: Create Automatic Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: false
title: Latest Release
files: |
pokered-ru.bps
pokeblue-ru.bps