Merge pull request #12 from PikalaxALT/pikalax_work

Create build workflow
This commit is contained in:
WhenGryphonsFly 2023-06-05 19:18:19 -05:00 committed by GitHub
commit ddd16d32a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 55 additions and 4 deletions

37
.github/workflows/build.yml vendored Normal file
View 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)

View File

@ -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

Binary file not shown.

View File

@ -1,8 +1,11 @@
CC = gcc
.PHONY: clean
.PHONY: clean all
SRCS = gbafix.c
all: gbafix
@:
gbafix: $(SRCS)
$(CC) $(SRCS) -o $@ $(LDFLAGS)

View File

@ -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)

View File

@ -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)

View File

@ -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)