Merge pull request #61 from wheremyfoodat/bugfix2 #56
This file contains hidden or 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: Pull progress | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build_stats: | |
| name: Progress | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y build-essential gcc-arm-none-eabi binutils-arm-none-eabi libpng-dev | |
| python3 -m pip install --upgrade pip | |
| pip install requests argparse | |
| - name: Build tools | |
| run: ./build_tools.sh | |
| - name: Install agbcc | |
| run: tools/install_agbcc.sh | |
| - name: Generate dummy base ROM | |
| run: head -c 8M /dev/urandom > fe6-base.gba | |
| - name: Build target ROM | |
| run: make -j fe6.gba | |
| - name: Build stats | |
| run: tools/stats/calcstats.sh fe6.elf fe6.map > stats.txt | |
| - name: Upload stats | |
| run: python tools/stats/upload_stats.py -b https://progress.deco.mp -a ${{secrets.FROGRESS_API_KEY}} -p fireemblem6 -v jp stats.txt |