mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
Nintendo 64 github actions build
This commit is contained in:
parent
003542eef7
commit
e5eafc25a0
38
.github/workflows/build_n64.yml
vendored
Normal file
38
.github/workflows/build_n64.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: Build latest (N64)
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}-n64
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.ref_name == github.event.repository.default_branch
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/dragonminded/libdragon:latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Compile N64 build
|
||||||
|
id: compile
|
||||||
|
run: |
|
||||||
|
REAL_DIR=`pwd`
|
||||||
|
cd /tmp
|
||||||
|
git clone -b opengl https://github.com/DragonMinded/libdragon.git --depth=1
|
||||||
|
cd libdragon
|
||||||
|
make install
|
||||||
|
make tools-install
|
||||||
|
cd $REAL_DIR
|
||||||
|
make n64
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to compile N64 build'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
|
||||||
|
- uses: ./.github/actions/upload_build
|
||||||
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
|
with:
|
||||||
|
SOURCE_FILE: 'ClassiCube-n64.z64'
|
||||||
|
DEST_NAME: 'ClassiCube-n64.z64'
|
@ -8,7 +8,7 @@ N64_ROM_RTC = true
|
|||||||
CFILES := $(notdir $(wildcard src/*.c))
|
CFILES := $(notdir $(wildcard src/*.c))
|
||||||
OFILES := $(CFILES:.c=.o)
|
OFILES := $(CFILES:.c=.o)
|
||||||
OBJS := $(addprefix $(BUILD_DIR)/,$(OFILES))
|
OBJS := $(addprefix $(BUILD_DIR)/,$(OFILES))
|
||||||
CFLAGS := "-Wno-error=missing-braces"
|
CFLAGS := -Wno-error=missing-braces -Wno-error=strict-aliasing -Wno-error=incompatible-pointer-types -Wno-error=maybe-uninitialized
|
||||||
|
|
||||||
include $(N64_INST)/include/n64.mk
|
include $(N64_INST)/include/n64.mk
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ void Gfx_BeginFrame(void) {
|
|||||||
Platform_LogConst("GFX ctx beg");
|
Platform_LogConst("GFX ctx beg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern void __rdpq_autosync_change(int mode);
|
||||||
static color_t gfx_clearColor;
|
static color_t gfx_clearColor;
|
||||||
void Gfx_Clear(void) {
|
void Gfx_Clear(void) {
|
||||||
__rdpq_autosync_change(AUTOSYNC_PIPE);
|
__rdpq_autosync_change(AUTOSYNC_PIPE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user