diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1d526c9..dc17021f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: mkdir build mkdir output # TODO: split this to use params for each flashcart type. - make -j all + make menu - name: Upload artifact uses: actions/upload-artifact@v3 @@ -80,6 +80,7 @@ jobs: - name: Finalize rom run: | + # make all python ./tools/sc64/minify.py ./build/N64FlashcartMenu.elf ./output/N64FlashcartMenu.z64 ./output/sc64menu.n64 continue-on-error: false diff --git a/Makefile b/Makefile index 55a1205f..7e370b06 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.DEFAULT_GOAL := all +.DEFAULT_GOAL := menu EXE_NAME = N64FlashcartMenu @@ -32,10 +32,14 @@ $(BUILD_DIR)/$(EXE_NAME).elf: $(OBJS) $(EXE_NAME).z64: N64_ROM_TITLE=$(EXE_NAME) -all: $(EXE_NAME).z64 - $(shell mkdir $(OUTPUT_DIR)) - $(shell mv $(EXE_NAME).z64 $(OUTPUT_DIR)) + menu: $(EXE_NAME).z64 + $(shell mkdir -p $(OUTPUT_DIR)) + $(shell mv $(EXE_NAME).z64 $(OUTPUT_DIR)) + +sc64_minify: $(shell python3 ./tools/sc64/minify.py $(BUILD_DIR)/$(EXE_NAME).elf $(OUTPUT_DIR)/N64FlashcartMenu.z64 $(OUTPUT_DIR)/sc64menu.n64) + +all: menu sc64_minify .PHONY: all clean: