Skip to content

Commit

Permalink
Add workflow and switches for Github Actions compat
Browse files Browse the repository at this point in the history
  • Loading branch information
hansbonini committed Jul 4, 2024
1 parent c2fca5f commit 99d2252
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
mkdir build
echo "" > 'build\Altered Beast (US).bin'
echo "" > 'build\Altered Beast (US).txt'
make NAME="Altered Beast" VERSION="US" build
make NAME="Altered Beast" VERSION="US" ASM68K_SWITCHES="//m //p //k" build
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@
VERSION ?= US
NAME ?= Altered Beast
ROM_US ?= Altered Beast (USA, Europe).md
WORKFLOW :=

# Directories
ASM_DIR := asm
BUILD_DIR := build
GFX_DIR := gfx
ROM_DIR := rom
TOOLS_DIR := tools
ASM_DIR := $(WORKFLOW)/asm
BUILD_DIR := $(WORKFLOW)/build
GFX_DIR := $(WORKFLOW)/gfx
ROM_DIR := $(WORKFLOW)/rom
TOOLS_DIR := $(WORKFLOW)/tools

# Tooling
GO := go run
ASM68K := $(TOOLS_DIR)/asm68k/asm68k.exe
ASM68K_SWITCHES ?= /m /p /k
SEGARD_DECOMP := $(TOOLS_DIR)/segard/decomp.go

all: extract build
build:
$(ASM68K) //m //k //p "$(ASM_DIR)/$(NAME).asm","$(BUILD_DIR)/$(NAME) ($(VERSION)).bin",,"$(BUILD_DIR)/$(NAME) ($(VERSION)).bin"
$(ASM68K) $(ASM68K_SWITCHES) "$(ASM_DIR)/$(NAME).asm","$(BUILD_DIR)/$(NAME) ($(VERSION)).bin",,"$(BUILD_DIR)/$(NAME) ($(VERSION)).bin"
extract: segard_decomp
segard_decomp:
$(GO) $(SEGARD_DECOMP) "$(ROM_DIR)/$(ROM_$(VERSION))" $(GFX_DIR)/segard/00024000.smd 0x00024000
Expand Down

0 comments on commit 99d2252

Please sign in to comment.