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 25, 2023
1 parent 681f3e7 commit 93c6bda
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 41 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Testing

on:
push:
pull_request:

permissions:
contents: read

jobs:
build:
# 22.04 suffers from https://github.com/TASEmulators/fceux/issues/413
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Add packages
run: |
sudo apt-get update
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
- 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
run: |
ln -snf build-ntsc/ build
xvfb-run -a make V=1 test
- name: Test PAL
run: |
ln -snf build-pal/ build
xvfb-run -a make V=1 PAL=1 test
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

0 comments on commit 93c6bda

Please sign in to comment.