Merge branch 'develop' #21
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: Build production version | |
on: | |
push: | |
branches: [main, develop] | |
jobs: | |
build-everything: | |
runs-on: ubuntu-latest | |
name: Build All Binaries | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Prepare environment | |
uses: ./.github/actions/prepare_pio | |
- name: Download AquesTalk | |
run: | | |
wget https://www.a-quest.com/archive/package/aquestalk-esp32_0243.zip -O /tmp/aquestalk.zip | |
unzip /tmp/aquestalk.zip -d /tmp | |
mv /tmp/aquestalk-esp32/src/esp32/libaquestalk.a ./lib/nonfree-aquestalk/libaquestalk.a | |
mv /tmp/aquestalk-esp32/src/aquestalk.h ./lib/nonfree-aquestalk/aquestalk.h | |
- name: Create env file | |
run: cp ./.env.example ./.env | |
- name: Build all targets | |
run: pio run | |
continue-on-error: true # TODO make this more graceful | |
- name: Upload firmware images | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./.pio/build/*/firmware.bin | |
name: firmwares.zip | |
if-no-files-found: error | |
- name: Delete WIP tunes | |
run: rm ./data/music/wip_*.pomf | |
- name: Create LittleFS image | |
run: pio run --target buildfs --environment music-pomf | |
- name: Upload filesystem image | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./.pio/build/music-pomf/littlefs.bin | |
name: filesystem.zip | |
if-no-files-found: error |