feat: 0.2.10 scripts accept mode argument (#59) #27
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
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" | |