-
Notifications
You must be signed in to change notification settings - Fork 25
155 lines (150 loc) · 6.1 KB
/
main.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
name: Nightly build
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set environment variables
run: echo "SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
- name: Install dependencies
run: |
sudo apt-get install make python3 gcc git bison
git clone -b v0.5.2 --depth=1 https://github.com/gbdev/rgbds
pushd rgbds
sudo make install
popd
- name: Build PiaCarrot/pokeorange
run: |
git clone https://github.com/PiaCarrot/pokeorange.git
pushd pokeorange
mkdir build
make -j4
mv pokeorange.gbc build/pokeorange.gbc
mv pokeorange.sym build/pokeorange.sym
make clean
make -j4 pss
mv pokeorange.gbc build/pokeorange-pss.gbc
mv pokeorange.sym build/pokeorange-pss.sym
make clean
make -j4 debug
mv pokeorange.gbc build/orangedebug.gbc
mv pokeorange.sym build/orangedebug.sym
make clean
make -j4 pss debug
mv pokeorange.gbc build/orangedebug-pss.gbc
mv pokeorange.sym build/orangedebug-pss.sym
make clean
popd
- name: Delete old release
id: delete_release
uses: jagger27/delete-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: beta-nightly
- name: Advance nightly tag to master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pushd pokeorange
git tag beta-nightly -f
git push --tags -f "https://PiaCarrot:$GITHUB_TOKEN@github.com/PiaCarrot/pokeorange.git"
popd
- name: Create new release
id: create_release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: beta-nightly
release_name: beta nightly
body: |
This is the current Pokémon Orange *beta* release. The assets all have an 8-character "commit hash" at the end to identify the exact code they're built from.
The **.gbc** assets are ROMs. If you just want to play the game, download one (regular or `-pss`) and load it in [BGB](https://bgb.bircd.org/), [mGBA](https://mgba.io/), [Gambatte](https://github.com/sinamas/gambatte), or another accurate Game Boy Color emulator. (***Do not use VBA*** or VBA-M.)
The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.)
The **orangedebug** assets are ROMs and symbol files with extra features to help debug the game. Do ***not*** download these to just play with; use them to help the developers diagnose and fix bugs, or create new features.
draft: false
prerelease: true
- name: Upload ROM
id: upload
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/pokeorange.gbc
asset_name: pokeorange-${{ env.SHORT_SHA }}.gbc
asset_content_type: application/octet-stream
- name: Upload SYM
id: upload-sym
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/pokeorange.sym
asset_name: pokeorange-${{ env.SHORT_SHA }}.sym
asset_content_type: text/plain
- name: Upload pss ROM
id: upload-pss
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/pokeorange-pss.gbc
asset_name: pokeorange-pss-${{ env.SHORT_SHA }}.gbc
asset_content_type: application/octet-stream
- name: Upload pss SYM
id: upload-pss-sym
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/pokeorange-pss.sym
asset_name: pokeorange-pss-${{ env.SHORT_SHA }}.sym
asset_content_type: text/plain
- name: Upload debug ROM
id: upload-debug
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/orangedebug.gbc
asset_name: orangedebug-${{ env.SHORT_SHA }}.gbc
asset_content_type: application/octet-stream
- name: Upload debug SYM
id: upload-debug-sym
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/orangedebug.sym
asset_name: orangedebug-${{ env.SHORT_SHA }}.sym
asset_content_type: text/plain
- name: Upload pss debug ROM
id: upload-pss-debug
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/orangedebug-pss.gbc
asset_name: orangedebug-pss-${{ env.SHORT_SHA }}.gbc
asset_content_type: application/octet-stream
- name: Upload pss debug SYM
id: upload-pss-debug-sym
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pokeorange/build/orangedebug-pss.sym
asset_name: orangedebug-pss-${{ env.SHORT_SHA }}.sym
asset_content_type: text/plain