-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
245a163
commit dc8d31b
Showing
6 changed files
with
194 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build latest (Mac Classic) | ||
on: [push] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-mac-classic | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-mac-classic: | ||
if: github.ref_name == github.event.repository.default_branch | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/autc04/retro68 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Compile Mac classic build | ||
id: compile | ||
run: | | ||
make macclassic_68k RETRO68=/Retro68-build/toolchain | ||
make macclassic_ppc RETRO68=/Retro68-build/toolchain | ||
- uses: ./.github/actions/notify_failure | ||
if: ${{ always() && steps.compile.outcome == 'failure' }} | ||
with: | ||
NOTIFY_MESSAGE: 'Failed to compile Mac Classic build' | ||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' | ||
|
||
|
||
- uses: ./.github/actions/upload_build | ||
if: ${{ always() && steps.compile.outcome == 'success' }} | ||
with: | ||
SOURCE_FILE: 'ClassiCube-68k.dsk' | ||
DEST_NAME: 'ClassiCube-68k.dsk' | ||
|
||
- uses: ./.github/actions/upload_build | ||
if: ${{ always() && steps.compile.outcome == 'success' }} | ||
with: | ||
SOURCE_FILE: 'ClassiCube-ppc.dsk' | ||
DEST_NAME: 'ClassiCube-ppc.dsk' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "Processes.r" | ||
#include "Retro68.r" | ||
|
||
resource 'SIZE' (-1) { | ||
reserved, | ||
ignoreSuspendResumeEvents, | ||
reserved, | ||
cannotBackground, | ||
needsActivateOnFGSwitch, | ||
backgroundAndForeground, | ||
dontGetFrontClicks, | ||
ignoreChildDiedEvents, | ||
is32BitCompatible, | ||
notHighLevelEventAware, | ||
onlyLocalHLEvents, | ||
notStationeryAware, | ||
dontUseTextEditServices, | ||
reserved, | ||
reserved, | ||
reserved, | ||
3072 * 1024, | ||
8192 * 1024 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# path to RETRO68 | ||
RETRO68=../Retro68-build/toolchain | ||
|
||
PREFIX=$(RETRO68)/m68k-apple-macos | ||
CC=$(RETRO68)/bin/m68k-apple-macos-gcc | ||
CXX=$(RETRO68)/bin/m68k-apple-macos-g++ | ||
CFLAGS=-O1 -fno-math-errno | ||
|
||
REZ=$(RETRO68)/bin/Rez | ||
|
||
LDFLAGS=-lRetroConsole | ||
RINCLUDES=$(PREFIX)/RIncludes | ||
REZFLAGS=-I$(RINCLUDES) | ||
|
||
TARGET := ClassiCube-68k | ||
BUILD_DIR := build-68k | ||
SOURCE_DIR := src | ||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c) | ||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES)) | ||
|
||
$(TARGET).bin $(TARGET).APPL $(TARGET).dsk: $(BUILD_DIR) $(TARGET).code.bin | ||
$(REZ) $(REZFLAGS) \ | ||
--copy "$(TARGET).code.bin" \ | ||
"misc/macclassic/68APPL.r" \ | ||
-t "APPL" -c "????" \ | ||
-o $(TARGET).bin --cc $(TARGET).APPL --cc $(TARGET).dsk | ||
|
||
|
||
$(TARGET).code.bin: $(C_OBJECTS) | ||
$(CXX) $(C_OBJECTS) -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it | ||
|
||
$(BUILD_DIR): | ||
mkdir -p $(BUILD_DIR) | ||
|
||
$(C_OBJECTS): $(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c | ||
$(CC) $(CFLAGS) -c $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# path to RETRO68 | ||
RETRO68=../Retro68-build/toolchain | ||
|
||
PREFIX=$(RETRO68)/powerpc-apple-macos | ||
CC=$(RETRO68)/bin/powerpc-apple-macos-gcc | ||
CXX=$(RETRO68)/bin/powerpc-apple-macos-g++ | ||
CFLAGS=-O1 -fno-math-errno | ||
|
||
REZ=$(RETRO68)/bin/Rez | ||
MakePEF=$(RETRO68)/bin/MakePEF | ||
|
||
LDFLAGS=-lRetroConsole | ||
RINCLUDES=$(PREFIX)/RIncludes | ||
REZFLAGS=-I$(RINCLUDES) | ||
|
||
TARGET := ClassiCube-ppc | ||
BUILD_DIR := build-ppc | ||
SOURCE_DIR := src | ||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c) | ||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES)) | ||
|
||
$(TARGET).bin $(TARGET).APPL $(TARGET).dsk: $(BUILD_DIR) $(TARGET).pef | ||
$(REZ) $(REZFLAGS) \ | ||
"misc/macclassic/ppcAPPL.r" \ | ||
-t "APPL" -c "????" \ | ||
--data $(TARGET).pef \ | ||
-o $(TARGET).bin --cc $(TARGET).APPL --cc $(TARGET).dsk | ||
|
||
$(TARGET).elf: $(C_OBJECTS) | ||
$(CXX) $(C_OBJECTS) -o $@ $(LDFLAGS) # C++ used for linking because RetroConsole needs it | ||
|
||
$(TARGET).pef: $(TARGET).elf | ||
$(MakePEF) $(TARGET).elf -o $(TARGET).pef | ||
|
||
$(BUILD_DIR): | ||
mkdir -p $(BUILD_DIR) | ||
|
||
$(C_OBJECTS): $(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c | ||
$(CC) $(CFLAGS) -c $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "Processes.r" | ||
#include "CodeFragments.r" | ||
|
||
resource 'cfrg' (0) { | ||
{ | ||
kPowerPCCFragArch, kIsCompleteCFrag, kNoVersionNum, kNoVersionNum, | ||
kDefaultStackSize, kNoAppSubFolder, | ||
kApplicationCFrag, kDataForkCFragLocator, kZeroOffset, kCFragGoesToEOF, | ||
"ClassiCube" | ||
} | ||
}; | ||
|
||
resource 'SIZE' (-1) { | ||
reserved, | ||
ignoreSuspendResumeEvents, | ||
reserved, | ||
cannotBackground, | ||
needsActivateOnFGSwitch, | ||
backgroundAndForeground, | ||
dontGetFrontClicks, | ||
ignoreChildDiedEvents, | ||
is32BitCompatible, | ||
notHighLevelEventAware, | ||
onlyLocalHLEvents, | ||
notStationeryAware, | ||
dontUseTextEditServices, | ||
reserved, | ||
reserved, | ||
reserved, | ||
8192 * 1024, | ||
8192 * 1024 | ||
}; |