From c0bb55a83b5d8a2a10b0f96c527fd7d91162c04c Mon Sep 17 00:00:00 2001 From: Echo J Date: Tue, 16 Sep 2025 08:27:53 +0300 Subject: [PATCH] Saturn/NDS: Make ELF artifacts appear in Actions build --- .github/workflows/build_nds.yml | 4 ++-- misc/saturn/Makefile | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_nds.yml b/.github/workflows/build_nds.yml index 9ffd175fd..526ef7ed8 100644 --- a/.github/workflows/build_nds.yml +++ b/.github/workflows/build_nds.yml @@ -48,7 +48,7 @@ jobs: - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: - SOURCE_FILE: 'build-nds/cc-arm9.elf' + SOURCE_FILE: 'build/nds/cc-arm9.elf' DEST_NAME: 'ClassiCube-nds.elf' - uses: ./.github/actions/upload_build @@ -60,7 +60,7 @@ jobs: - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: - SOURCE_FILE: 'build-dsi/cc-arm9.elf' + SOURCE_FILE: 'build/dsi/cc-arm9.elf' DEST_NAME: 'ClassiCube-dsi.elf' diff --git a/misc/saturn/Makefile b/misc/saturn/Makefile index 52ba00908..9254d5baf 100644 --- a/misc/saturn/Makefile +++ b/misc/saturn/Makefile @@ -90,7 +90,10 @@ clean: $(BUILD_DIR)/$(TARGET).elf: $(SH_OBJS) $(SH_LD) $(foreach specs,$(SH_SPECS),-specs=$(specs)) $(SH_OBJS) $(SH_LDFLAGS) -o $@ -$(BUILD_DIR)/$(TARGET).bin: $(BUILD_DIR)/$(TARGET).elf +$(TARGET).elf: $(BUILD_DIR)/$(TARGET).elf + cp $< $@ + +$(BUILD_DIR)/$(TARGET).bin: $(TARGET).elf $(SH_OBJCOPY) -O binary $< $@ @[ -z "${SILENT}" ] && du -hs $@ | awk '{ print $$1; }' || true