forked from MokhaLeee/fe8u-cskillsys-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.9 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
name: Build Check
on:
pull_request:
push:
branches:
- main
jobs:
CI-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y binutils-arm-none-eabi gcc-arm-none-eabi build-essential cmake
sudo apt-get install -y re2c ghc cabal-install libghc-vector-dev libghc-juicypixels-dev
sudo apt-get install -y python3-pip pkg-config libpng* bsdiff moreutils
python3 -m pip install --upgrade pip
python3 -m pip install pyelftools PyInstaller tmx six Pillow
- name: Install DEVKITPRO
run: |
curl -L -o devkit.gz https://github.com/MokhaLeee/fe8_hacks_sundries/releases/download/ci/devkit.gz
tar -xzvf devkit.gz -C $HOME/
echo "DEVKITPRO=$HOME/opt/devkitpro" >> $GITHUB_ENV
echo "DEVKITARM=\${DEVKITPRO}/devkitARM" >> $GITHUB_ENV
echo "DEVKITPPC=\${DEVKITPRO}/devkitPPC" >> $GITHUB_ENV
echo "\${DEVKITPRO}/tools/bin" >> $GITHUB_PATH
- name: Install submodules
run: |
git clone https://github.com/MokhaLeee/FE-CLib-Mokha.git Tools/FE-CLib-Mokha
git clone https://github.com/StanHash/FE-PyTools.git --recursive Tools/FE-PyTools
git clone https://github.com/MokhaLeee/EventAssembler.git -b mokha-fix Tools/EventAssembler
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0'
- name: Build EA
run: |
cd Tools/EventAssembler && ./build.sh && cd ../..
- name: Fake generate baserom
run: head -c 16M /dev/urandom > fe8.gba
- name: Debug build
run: make -j
- name: Clean build
run: make clean
- name: Debug remove skill build
run: make -j CONFIG_CI_NO_SKILL_TEST=1