Add actions workflow for Mac Classic

This commit is contained in:
UnknownShadow200 2024-06-07 07:50:57 +10:00
parent 06dc140534
commit 0c8d8a04ad
5 changed files with 52 additions and 8 deletions

45
.github/workflows/build_macclassic.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Build latest (Mac Classic)
# trigger via either push to selected branches or on manual run
on:
push:
branches:
- main
- master
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-mac-classic
cancel-in-progress: true
jobs:
build-mac-classic:
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'

View File

@ -12,13 +12,13 @@ LDFLAGS=-lRetroConsole
RINCLUDES=$(PREFIX)/RIncludes
REZFLAGS=-I$(RINCLUDES)
TARGET := ClassiCube
BUILD_DIR := build
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: $(TARGET).code.bin $(BUILD_DIR)
$(TARGET).bin $(TARGET).APPL $(TARGET).dsk: $(BUILD_DIR) $(TARGET).code.bin
$(REZ) $(REZFLAGS) \
--copy "$(TARGET).code.bin" \
"misc/macclassic/68APPL.r" \

View File

@ -13,13 +13,13 @@ LDFLAGS=-lRetroConsole
RINCLUDES=$(PREFIX)/RIncludes
REZFLAGS=-I$(RINCLUDES)
TARGET := ClassiCube
BUILD_DIR := build
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: $(TARGET).pef $(BUILD_DIR)
$(TARGET).bin $(TARGET).APPL $(TARGET).dsk: $(BUILD_DIR) $(TARGET).pef
$(REZ) $(REZFLAGS) \
"misc/macclassic/ppcAPPL.r" \
-t "APPL" -c "????" \

View File

@ -738,7 +738,6 @@ static void FallbackOpenGL(void) {
_glDrawElements = gl11_drawElements; _glColorPointer = gl11_colorPointer;
_glTexCoordPointer = gl11_texCoordPointer; _glVertexPointer = gl11_vertexPointer;
_realDrawElements = NULL;
/* OpenGL 1.0 fallback support */
if (_realDrawElements) return;