mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Add actions workflow for Mac Classic
This commit is contained in:
parent
06dc140534
commit
0c8d8a04ad
45
.github/workflows/build_macclassic.yml
vendored
Normal file
45
.github/workflows/build_macclassic.yml
vendored
Normal 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'
|
@ -12,13 +12,13 @@ LDFLAGS=-lRetroConsole
|
|||||||
RINCLUDES=$(PREFIX)/RIncludes
|
RINCLUDES=$(PREFIX)/RIncludes
|
||||||
REZFLAGS=-I$(RINCLUDES)
|
REZFLAGS=-I$(RINCLUDES)
|
||||||
|
|
||||||
TARGET := ClassiCube
|
TARGET := ClassiCube-68k
|
||||||
BUILD_DIR := build
|
BUILD_DIR := build-68k
|
||||||
SOURCE_DIR := src
|
SOURCE_DIR := src
|
||||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
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) \
|
$(REZ) $(REZFLAGS) \
|
||||||
--copy "$(TARGET).code.bin" \
|
--copy "$(TARGET).code.bin" \
|
||||||
"misc/macclassic/68APPL.r" \
|
"misc/macclassic/68APPL.r" \
|
||||||
|
@ -13,13 +13,13 @@ LDFLAGS=-lRetroConsole
|
|||||||
RINCLUDES=$(PREFIX)/RIncludes
|
RINCLUDES=$(PREFIX)/RIncludes
|
||||||
REZFLAGS=-I$(RINCLUDES)
|
REZFLAGS=-I$(RINCLUDES)
|
||||||
|
|
||||||
TARGET := ClassiCube
|
TARGET := ClassiCube-ppc
|
||||||
BUILD_DIR := build
|
BUILD_DIR := build-ppc
|
||||||
SOURCE_DIR := src
|
SOURCE_DIR := src
|
||||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||||
C_OBJECTS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.o, $(C_SOURCES))
|
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) \
|
$(REZ) $(REZFLAGS) \
|
||||||
"misc/macclassic/ppcAPPL.r" \
|
"misc/macclassic/ppcAPPL.r" \
|
||||||
-t "APPL" -c "????" \
|
-t "APPL" -c "????" \
|
||||||
|
@ -738,7 +738,6 @@ static void FallbackOpenGL(void) {
|
|||||||
|
|
||||||
_glDrawElements = gl11_drawElements; _glColorPointer = gl11_colorPointer;
|
_glDrawElements = gl11_drawElements; _glColorPointer = gl11_colorPointer;
|
||||||
_glTexCoordPointer = gl11_texCoordPointer; _glVertexPointer = gl11_vertexPointer;
|
_glTexCoordPointer = gl11_texCoordPointer; _glVertexPointer = gl11_vertexPointer;
|
||||||
_realDrawElements = NULL;
|
|
||||||
|
|
||||||
/* OpenGL 1.0 fallback support */
|
/* OpenGL 1.0 fallback support */
|
||||||
if (_realDrawElements) return;
|
if (_realDrawElements) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user