-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (44 loc) · 1.13 KB
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Testing
on:
push:
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
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
env:
QT_QPA_PLATFORM: offscreen
run: |
ln -snf build-ntsc/ build
make V=1 test
- name: Test PAL
env:
QT_QPA_PLATFORM: offscreen
run: |
ln -snf build-pal/ build
make V=1 PAL=1 test