Skip to content

Commit

Permalink
Add DS builds to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Jan 30, 2024
1 parent d380d8f commit 4e78a84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,17 @@ jobs:
with:
name: arcem-${{ matrix.amiga.host }}
path: ./arcem

build-nds:
name: Nintendo DS
runs-on: ubuntu-latest
container: devkitpro/devkitarm:latest

steps:
- uses: actions/checkout@v3
- name: Build
run: make SYSTEM=nds
- uses: actions/upload-artifact@v3
with:
name: arcem-nds
path: ./ArcEm.nds
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ riscpkg: $(TARGET)
endif

ifeq (${SYSTEM},nds)
CC=arm-none-eabi-gcc
AS=arm-none-eabi-as
CC=$(DEVKITARM)/bin/arm-none-eabi-gcc
AS=$(DEVKITARM)/bin/arm-none-eabi-as
LD=$(CC)
ARM9_ARCH = -mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s
CFLAGS += $(ARM9_ARCH) -ffunction-sections -fdata-sections -DSYSTEM_nds -DARM9 -DUSE_FAKEMAIN -DNO_OPEN64 -isystem $(DEVKITPRO)/libnds/include -Wno-cast-align -Wno-format
Expand Down

0 comments on commit 4e78a84

Please sign in to comment.