Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Nov 23, 2023
1 parent 1a35f44 commit 2f84b11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,12 +16,15 @@ jobs:
- name: Add packages
run: |
sudo apt-get update
sudo apt-get install fceux cc65 flips
sudo apt-get install cc65 fceux
- name: Grab Dependencies
env:
ERSOFT_SECRET: ${{ secrets.ERSOFT_SECRET }}
run: |
mkdir -p ~/.local/bin
curl -L -u "$ERSOFT_SECRET" https://ejona.ersoft.org/taus-ci/flips -o ~/.local/bin/flips
chmod +x ~/.local/bin/flips
curl -OL -u "$ERSOFT_SECRET" https://ejona.ersoft.org/taus-ci/tetris.nes
curl -OL -u "$ERSOFT_SECRET" https://ejona.ersoft.org/taus-ci/tetris-pal.nes
Expand All @@ -33,15 +39,11 @@ jobs:
mv build/ build-pal/
- name: Test NTSC
uses: coactions/setup-xvfb@v1
with:
run: |
ln -snf build-ntsc/ build
make V=1 test
run: |
ln -snf build-ntsc/ build
xvfb-run -a make V=1 test
- name: Test PAL
uses: coactions/setup-xvfb@v1
with:
run: |
ln -snf build-pal/ build
make V=1 PAL=1 test
run: |
ln -snf build-pal/ build
xvfb-run -a make V=1 PAL=1 test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ FCEUXFLAGS = --pal 0
endif
build/%.test: %.lua
# Second prerequisite is assumed to be a .nes to run
fceux --no-config 1 --fullscreen 0 --sound 0 --frameskip 100 $(FCEUXFLAGS) --loadlua $< $(word 2,$^)
fceux --no-config 1 --fullscreen 0 --sound 0 --frameskip 100 $(FCEUXFLAGS) --loadlua $$(readlink -f $<) $(word 2,$^)
touch $@

.PHONY: test
test:
# fceux saves some of the configuration, so restore what we can
fceux --no-config 1 --sound 1 --frameskip 0 --loadlua testing-reset.lua build/tetris.nes
fceux --no-config 1 --sound 1 --frameskip 0 --loadlua $$(readlink -f testing-reset.lua) build/tetris.nes

# include last because it enables SECONDEXPANSION
include nes.mk

0 comments on commit 2f84b11

Please sign in to comment.