Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat committed Jul 29, 2024
1 parent e382444 commit 5e12d9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
working-directory: ./tests/build
- name: test single rom (bash)
run: |
wine ../bgb/bgb.exe -set "DebugSrcBrk=1" -autoexit -hf -stateonexit -screenonexit build/wav_test_load_and_play.bmp -rom build/wav_test_load_and_play.gb
wine ../bgb/bgb.exe -autoexit -hf -stateonexit -screenonexit build/wav_test_load_and_play.bmp -rom build/wav_test_load_and_play.gb
working-directory: ./tests
- run: |
ls -alF
Expand Down
15 changes: 11 additions & 4 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OBJS = $(TESTS:%.c=$(BLDDIR)/%.o)
TESTROMS = $(TESTS:%.c=$(BLDDIR)/%.gb)

BGBDIR = ../bgb

# GBDKDIR = ../gbdk

all: clean mkdirs $(BGBDIR) build-all

Expand All @@ -21,9 +21,16 @@ mkdirs:
mkdir -p $(BLDDIR)

$(BGBDIR):
wget https://bgb.bircd.org/bgbw64.zip
unzip -jo -qq bgbw64.zip -d ../bgb
rm bgbw64.zip
wget https://bgb.bircd.org/bgb.zip
unzip -jo -qq bgb.zip -d ../bgb
rm bgb.zip

# gbdk-linux64.tar.gz:
# wget https://github.com/gbdk-2020/gbdk-2020/releases/download/4.3.0/gbdk-linux64.tar.gz

# $(GBDKDIR):
# tar -zxvf gbdk-linux64.tar.gz -C $(GBDKDIR)
# # rm gbdk-linux64.tar.gz

$(BLDDIR)/%.gb: $(MYDIR)/%.c mkdirs $(BGBDIR)
$(CC) -o $@ $<
Expand Down

0 comments on commit 5e12d9e

Please sign in to comment.