forked from SuperDisk/hUGEDriver
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.47 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
name: Package driver distribution
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
shell: bash
run: |
sudo apt -qq update
sudo apt install -yq bison
wget 'https://github.com/gbdev/rgbds/releases/download/v0.6.1/rgbds-0.6.1.tar.gz' -O- | tar xz rgbds/{include,src,Makefile}
pushd rgbds
make -j4 rgbasm rgblink rgbfix Q=
popd
wget https://github.com/gbdk-2020/gbdk-2020/releases/download/4.1.1/gbdk-linux64.tar.gz -O- | tar xz
- name: Check out hUGEDriver
uses: actions/checkout@v2
with:
path: hUGEDriver
- name: Build distribution
shell: bash
run: |
export PATH=$PATH:`realpath gbdk/bin`
export PATH=$PATH:`realpath rgbds`
pushd hUGEDriver
rgbasm -DGBDK -ohUGEDriver.obj hUGEDriver.asm
python ./tools/rgb2sdas.py -o hUGEDriver.o hUGEDriver.obj
sdar -ru hUGEDriver.lib hUGEDriver.o
popd
mkdir packaging
mkdir packaging/rgbds
mkdir packaging/gbdk
cp hUGEDriver/hUGEDriver.asm packaging/rgbds/
cp -R hUGEDriver/include/ packaging/
cp hUGEDriver/hUGEDriver.lib packaging/gbdk/
rm packaging/include/hardware.inc
- name: Store build
uses: actions/upload-artifact@v2
with:
name: hUGEDriver
path: packaging/