-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1 KB
/
run-demo.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
name: Test ./demo with demofile.txt
on:
push:
branches: [master]
pull_request:
branches: [master]
# Allow one concurrent deployment
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: Generate ./demofile.txt
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Run sudo apt update
run: sudo apt update -y
- name: Install pip
run: sudo apt install pip -y
- name: Install Pillow
run: |
sudo pip install Pillow
- name: Build ./demo
run: |
make
- name: Generate demofile.txt with sprites.py
run: |
python ./scripts/sprites.py "./sample-sprites/alt-chest-animation" && echo -e "\n\033[1;32mSuccess.\e[0m\n"
- name: Run ./demo with demofile.txt
run: |
./demo demofile.txt <<< cat "\n\n\n\n\n\n\n\n\n\n\n\n" && echo -e "\n\033[1;32mSuccess.\e[0m\n"