mirror of
https://github.com/Nightkingale/Wii-U-Account-Swap.git
synced 2026-04-26 08:17:06 -05:00
Change workflow to produce debug builds
This commit is contained in:
parent
a82db6237c
commit
0bc261716d
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
8
Makefile
8
Makefile
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user