Skip to content

Commit

Permalink
add bgbw64.zip install to make
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat committed Jul 28, 2024
1 parent bf2eec6 commit da7ccfc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
- name: Add msys64 to path
run: |
echo C:\msys64\usr\bin >> $env:GITHUB_PATH
- name: wget bgb
shell: bash
run: |
wget https://bgb.bircd.org/bgbw64.zip
unzip bgbw64.zip
- name: pip install
shell: bash
run: |
Expand Down
9 changes: 8 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ TESTS = $(wildcard *.c)
OBJS = $(TESTS:%.c=$(BLDDIR)/%.o)
TESTROMS = $(TESTS:%.c=$(BLDDIR)/%.gb)

BGBDIR = ../bgb


all: clean mkdirs build-all

Expand All @@ -18,7 +20,12 @@ clean:
mkdirs:
mkdir -p $(BLDDIR)

$(BLDDIR)/%.gb: $(MYDIR)/%.c mkdirs
$(BGBDIR):
wget https://bgb.bircd.org/bgbw64.zip
unzip -jo -qq bgbw64.zip -d ../bgb
rm bgbw64.zip

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

.PHONY: build-all
Expand Down

0 comments on commit da7ccfc

Please sign in to comment.