mirror of
https://github.com/pret/pokepinballrs.git
synced 2026-03-21 17:24:13 -05:00
Merge pull request #12 from PikalaxALT/pikalax_work
Create build workflow
This commit is contained in:
commit
ddd16d32a3
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
COMPARE: 1
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Clone 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 xdelta3
|
||||
|
||||
- name: Install agbcc
|
||||
working-directory: 'agbcc'
|
||||
run: |
|
||||
sh build.sh
|
||||
sh install.sh ..
|
||||
|
||||
- name: Make baserom.gba
|
||||
run: |
|
||||
dd if=/dev/zero of=zero.gba bs=16777216 count=1
|
||||
xdelta3 -d -s zero.gba baserom.xdelta baserom.gba
|
||||
|
||||
- name: Build pokepinball
|
||||
run: make -j$(nproc)
|
||||
2
Makefile
2
Makefile
|
|
@ -102,6 +102,8 @@ DATA_ASM_OBJS := $(patsubst $(DATA_ASM_SUBDIR)/%.s,$(DATA_ASM_BUILDDIR)/%.o,$(DA
|
|||
OBJS := $(C_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS)
|
||||
OBJS_REL := $(patsubst $(OBJ_DIR)/%,%,$(OBJS))
|
||||
|
||||
MAKEFLAGS += --no-print-directory
|
||||
|
||||
rom: $(ROM)
|
||||
|
||||
# For contributors to make sure a change didn't affect the contents of the ROM.
|
||||
|
|
|
|||
BIN
baserom.xdelta
Normal file
BIN
baserom.xdelta
Normal file
Binary file not shown.
|
|
@ -1,8 +1,11 @@
|
|||
CC = gcc
|
||||
.PHONY: clean
|
||||
.PHONY: clean all
|
||||
|
||||
SRCS = gbafix.c
|
||||
|
||||
all: gbafix
|
||||
@:
|
||||
|
||||
gbafix: $(SRCS)
|
||||
$(CC) $(SRCS) -o $@ $(LDFLAGS)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@ SRCS := asm_file.cpp c_file.cpp charmap.cpp preproc.cpp string_parser.cpp \
|
|||
HEADERS := asm_file.h c_file.h char_util.h charmap.h preproc.h string_parser.h \
|
||||
utf8.h
|
||||
|
||||
.PHONY: clean
|
||||
.PHONY: clean all
|
||||
|
||||
all: preproc
|
||||
@:
|
||||
|
||||
preproc: $(SRCS) $(HEADERS)
|
||||
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ SRCS := main.cpp sym_file.cpp elf.cpp
|
|||
|
||||
HEADERS := ramscrgen.h sym_file.h elf.h char_util.h
|
||||
|
||||
.PHONY: clean
|
||||
.PHONY: clean all
|
||||
|
||||
all: ramscrgen
|
||||
@:
|
||||
|
||||
ramscrgen: $(SRCS) $(HEADERS)
|
||||
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ SRCS = scaninc.cpp c_file.cpp asm_file.cpp
|
|||
|
||||
HEADERS := scaninc.h asm_file.h c_file.h
|
||||
|
||||
.PHONY: clean
|
||||
.PHONY: clean all
|
||||
|
||||
all: scaninc
|
||||
@:
|
||||
|
||||
scaninc: $(SRCS) $(HEADERS)
|
||||
$(CXX) $(CXXFLAGS) $(SRCS) -o $@ $(LDFLAGS)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user