Skip to content

Commit

Permalink
Replace Travis-CI with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Nov 23, 2023
1 parent 85fd8d2 commit 1a35f44
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Testing

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Add packages
run: |
sudo apt-get update
sudo apt-get install fceux cc65 flips
- name: Grab Dependencies
env:
ERSOFT_SECRET: ${{ secrets.ERSOFT_SECRET }}
run: |
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
- name: Build NTSC
run: |
make V=1
mv build/ build-ntsc/
- name: Build PAL
run: |
make V=1 PAL=1
mv build/ build-pal/
- name: Test NTSC
uses: coactions/setup-xvfb@v1
with:
run: |
ln -snf build-ntsc/ build
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

0 comments on commit 1a35f44

Please sign in to comment.