Merge pull request #13 from derDeno/main #42
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: Build Firmware | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| - name: Install PlatformIO | |
| run: pip install platformio | |
| - name: Build firmware | |
| run: pio run -e HW-2 | |
| - name: Build filesystem | |
| run: pio run -e HW-2 -t buildfs | |
| - name: Rename output files | |
| run: | | |
| mkdir output | |
| cp .pio/build/*/firmware.bin output/firmware.bin | |
| cp .pio/build/*/littlefs.bin output/filesystem.bin | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-binaries | |
| path: output/ |