mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-14 19:49:06 +01:00
Refactor make files and change artifact output (#410)
This changes the following: - Uploads a separate Wii and Gamecube artifact - Excludes uploading the elf files - Creates the complete Wii structure under executables/VisualBoyAdvanceGX - Creates the complete GameCube structure under executables/VisualBoyAdvanceGX-GameCube - Doesn't upload empty folders like the vbagx folder with cheats, roms and saves but it is created in a local environment
This commit is contained in:
parent
a9714f6fe9
commit
eb2f8e66a6
@ -17,8 +17,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make -j2
|
make -j2
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Copy files
|
||||||
|
run: |
|
||||||
|
cp -f hbc/* executables/VisualBoyAdvanceGX/apps/vbagx/
|
||||||
|
cp -f hbc/* executables/VisualBoyAdvanceGX-GameCube/
|
||||||
|
cp -f README.md executables/VisualBoyAdvanceGX/apps/vbagx/
|
||||||
|
cp -f README.md executables/VisualBoyAdvanceGX-GameCube/
|
||||||
|
|
||||||
|
- name: Upload Wii Build Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: executables
|
name: VisualBoyAdvanceGX-Nightly
|
||||||
path: executables/*
|
path: |
|
||||||
|
executables/VisualBoyAdvanceGX/
|
||||||
|
!executables/VisualBoyAdvanceGX/apps/vbagx/*.elf
|
||||||
|
|
||||||
|
- name: Upload GameCube Build Artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: VisualBoyAdvanceGX-Nightly-GameCube
|
||||||
|
path: |
|
||||||
|
executables/VisualBoyAdvanceGX-GameCube/
|
||||||
|
!executables/VisualBoyAdvanceGX-GameCube/*.elf
|
||||||
|
@ -11,12 +11,13 @@ include $(DEVKITPPC)/gamecube_rules
|
|||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# TARGET is the name of the output
|
# TARGET is the name of the output
|
||||||
|
# TARGETDIR is the directory where the output files will be placed
|
||||||
# BUILD is the directory where object files & intermediate files will be placed
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
TARGET := vbagx-gc
|
TARGET := boot
|
||||||
TARGETDIR := executables
|
TARGETDIR := executables/VisualBoyAdvanceGX-GameCube
|
||||||
BUILD := build_gc
|
BUILD := build_gc
|
||||||
SOURCES := source source/gui source/utils source/utils/sz \
|
SOURCES := source source/gui source/utils source/utils/sz \
|
||||||
source/vba source/vba/apu source/vba/common \
|
source/vba source/vba/apu source/vba/common \
|
||||||
@ -119,7 +120,7 @@ $(BUILD):
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
clean:
|
clean:
|
||||||
@echo clean ...
|
@echo clean ...
|
||||||
@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol
|
@rm -fr $(BUILD) $(TARGETDIR)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
run:
|
run:
|
||||||
|
13
Makefile.wii
13
Makefile.wii
@ -11,12 +11,17 @@ include $(DEVKITPPC)/wii_rules
|
|||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# TARGET is the name of the output
|
# TARGET is the name of the output
|
||||||
|
# TARGETDIR is the directory where the output files will be placed
|
||||||
|
# SUBDIR are the directories where the cheats, roms and saves need to be placed
|
||||||
|
# ROOTDIR is the root directory of the build
|
||||||
# BUILD is the directory where object files & intermediate files will be placed
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
# SOURCES is a list of directories containing source code
|
# SOURCES is a list of directories containing source code
|
||||||
# INCLUDES is a list of directories containing extra header files
|
# INCLUDES is a list of directories containing extra header files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
TARGET := vbagx-wii
|
TARGET := boot
|
||||||
TARGETDIR := executables
|
TARGETDIR := executables/VisualBoyAdvanceGX/apps/vbagx
|
||||||
|
ROOTDIR := executables/VisualBoyAdvanceGX
|
||||||
|
SUBDIR := executables/VisualBoyAdvanceGX/vbagx/{cheats,roms,saves}
|
||||||
BUILD := build_wii
|
BUILD := build_wii
|
||||||
SOURCES := source source/gui source/utils source/utils/sz \
|
SOURCES := source source/gui source/utils source/utils/sz \
|
||||||
source/vba source/vba/apu source/vba/common \
|
source/vba source/vba/apu source/vba/common \
|
||||||
@ -114,13 +119,13 @@ export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
$(BUILD):
|
$(BUILD):
|
||||||
@[ -d $@ ] || mkdir -p $@
|
@[ -d $@ ] || mkdir -p $@
|
||||||
@[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR)
|
@[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR) $(SUBDIR)
|
||||||
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile.wii
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile.wii
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
clean:
|
clean:
|
||||||
@echo clean ...
|
@echo clean ...
|
||||||
@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol
|
@rm -fr $(BUILD) $(ROOTDIR)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
run:
|
run:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user