forked from pret/pokeruby
-
Notifications
You must be signed in to change notification settings - Fork 0
156 lines (132 loc) · 3.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
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
name: CI
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GAME_VERSION: RUBY
GAME_REVISION: 0
GAME_LANGUAGE: ENGLISH
DEBUG: 0
MODERN: 0
COMPARE: 1
steps:
- name: Checkout
uses: actions/checkout@master
- name: Checkout DE
uses: actions/checkout@master
with:
path: 'build_de'
- name: Checkout Symbols
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@master
with:
path: 'symbols'
ref: symbols
- name: Checkout agbcc
uses: actions/checkout@master
with:
repository: 'pret/agbcc'
path: 'agbcc'
- name: Install binutils
run: sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
# build-essential, git, and libpng-dev are already installed
# gcc-arm-none-eabi is only needed for the modern build
# as an alternative to dkP
- name: Install agbcc
run: |
./build.sh
./install.sh ../
./install.sh ../build_de
working-directory: ./agbcc
- name: Compare
run: make -j${nproc} all syms
- name: Compare rev1
env:
GAME_REVISION: 1
run: make -j${nproc} all syms
- name: Compare rev2
env:
GAME_REVISION: 2
run: make -j${nproc} all syms
- name: Compare Sapphire
env:
GAME_VERSION: SAPPHIRE
run: make -j${nproc} all syms
- name: Compare Sapphire rev1
env:
GAME_VERSION: SAPPHIRE
GAME_REVISION: 1
run: make -j${nproc} all syms
- name: Compare Sapphire rev2
env:
GAME_VERSION: SAPPHIRE
GAME_REVISION: 2
run: make -j${nproc} all syms
- name: Nonmatching
env:
NONMATCHING: 1
COMPARE: 0
run: make -j${nproc} $(git grep -wl NONMATCHING src | sed -r 'i-W')
- name: Setup German
run: sh de_before.sh
working-directory: ./build_de
- name: German Ruby
env:
GAME_LANGUAGE: GERMAN
run: make -j${nproc} all syms
working-directory: ./build_de
- name: German Ruby Debug
env:
GAME_LANGUAGE: GERMAN
DEBUG: 1
run: make -j${nproc} all syms
working-directory: ./build_de
- name: German Ruby rev1
env:
GAME_LANGUAGE: GERMAN
GAME_REVISION: 1
run: make -j${nproc} all syms
working-directory: ./build_de
- name: German Sapphire
env:
GAME_LANGUAGE: GERMAN
GAME_VERSION: SAPPHIRE
run: make -j${nproc} all syms
working-directory: ./build_de
- name: German Sapphire rev1
env:
GAME_LANGUAGE: GERMAN
GAME_VERSION: SAPPHIRE
GAME_REVISION: 1
run: make -j${nproc} all syms
working-directory: ./build_de
- name: Modern
env:
MODERN: 1
COMPARE: 0
run: make -j${nproc} all
- name: Webhook
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
env:
CALCROM_DISCORD_WEBHOOK_USERNAME: OK
CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png
CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }}
run: sh .github/calcrom/webhook.sh pokeruby
- name: Move symfiles
if: ${{ github.event_name == 'push' }}
run: |
cp *.sym symbols/
cp build_de/*.sym symbols/
echo "SYMBOLS_COMMIT_MSG=$( git log --format=%s -n1 ${GITHUB_SHA} )" >> $GITHUB_ENV
- name: Update symfiles
if: ${{ github.event_name == 'push' }}
uses: EndBug/add-and-commit@v7
with:
branch: symbols
cwd: "./symbols"
add: "*.sym"
message: ${{ env.SYMBOLS_COMMIT_MSG }}