This repository was archived by the owner on Apr 9, 2026. It is now read-only.
Fixed FP & PIR parameter issues #10
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: PlatformIO CI | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/pip | |
| ~/.platformio/.cache | |
| key: ${{ runner.os }}-pio | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install PlatformIO Core | |
| run: | | |
| curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py | |
| python3 get-platformio.py | |
| mkdir -p /usr/local/bin | |
| ln -s ~/.platformio/penv/bin/platformio /usr/local/bin/platformio | |
| ln -s ~/.platformio/penv/bin/pio /usr/local/bin/pio | |
| ln -s ~/.platformio/penv/bin/piodebuggdb /usr/local/bin/piodebuggdb | |
| - name: Build PlatformIO Project | |
| run: pio run -e regular -e ROS | |
| working-directory: MicrocontrollerCode | |
| - name: Upload firmware | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firmware.uf2 | |
| path: MicrocontrollerCode/.pio/build/ROS/firmware.uf2 | |
| if-no-files-found: warn |