Change workflow to produce debug builds

This commit is contained in:
Nightkingale 2024-05-18 14:31:57 -06:00
parent a82db6237c
commit 0bc261716d
3 changed files with 10 additions and 6 deletions

View File

@ -8,11 +8,13 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Binary
run: |
docker build -t builder .
docker run --rm -v ${PWD}:/project builder make
docker run --rm -v ${PWD}:/project builder make DEBUG_BUILD=1
- name: Upload Wii_U_Account_Swap.rpx
uses: actions/upload-artifact@v4

View File

@ -2,4 +2,6 @@ FROM ghcr.io/wiiu-env/devkitppc:20240505
COPY --from=ghcr.io/wiiu-env/libmocha:20230621 /artifacts $DEVKITPRO
WORKDIR project
RUN git config --global --add safe.directory /project
WORKDIR /project

View File

@ -21,12 +21,12 @@ include $(DEVKITPRO)/wut/share/wut_rules
#-------------------------------------------------------------------------------
# APP_VERSION sets the version of the application
# DEBUG_FLAG sets the debug flag for the application
# DEBUG_BUILD sets the debug flag for the application
#-------------------------------------------------------------------------------
APP_VERSION := v2.0.2
DEBUG_FLAG := 0
DEBUG_BUILD := 0
ifeq ($(DEBUG_FLAG), 1)
ifeq ($(DEBUG_BUILD), 1)
GIT_HASH := $(shell git rev-parse --short HEAD)
APP_VERSION := $(APP_VERSION)-$(GIT_HASH)
endif
@ -154,7 +154,7 @@ all: $(BUILD)
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@$(MAKE) -C $(BUILD) -f $(CURDIR)/Makefile V=$(DEBUG_FLAG)
@$(MAKE) -C $(BUILD) -f $(CURDIR)/Makefile V=$(DEBUG_BUILD)
#-------------------------------------------------------------------------------
clean: