-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Travis-CI with Github Actions
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |