Merge branch 'main' of https://github.com/fablab-bergamo/rfid-arduino #115
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: PlatformIO CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Use secrets.hpp.example as base for the build | |
run: cp conf/secrets.hpp.example conf/secrets.hpp | |
- name: Check PlatformIO Project with linter | |
run: pio check | |
- name: Build PlatformIO Project ESP32-s3 | |
run: pio run -e esp32-s3 | |
- name: Upload ESP32S3 build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: esp32s3.bin | |
path: .pio/build/esp32-s3/firmware.bin | |
retention-days: 15 | |
- name: Build PlatformIO Project esp32dev | |
run: pio run -e esp32dev | |
- name: Upload ESP32 build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: esp32.bin | |
path: .pio/build/esp32dev/firmware.bin | |
retention-days: 15 | |
- name: Build PlatformIO Project wokwi | |
run: pio run -e wokwi | |
- name: Upload WOKWI build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: esp32-wokwi.bin | |
path: .pio/build/wokwi/firmware.bin | |
retention-days: 180 | |