|
| 1 | +name: PlatformIO CI |
| 2 | +on: [push] |
| 3 | + |
| 4 | +jobs: |
| 5 | + build: |
| 6 | + runs-on: ubuntu-latest |
| 7 | + strategy: |
| 8 | + matrix: |
| 9 | + board: |
| 10 | + - megaatmega2560 |
| 11 | + - esp32dev |
| 12 | + - esp01_1m |
| 13 | + # example: |
| 14 | + # Arduino32 |
| 15 | + # - examples/arduino32/colorTftEthernet32 |
| 16 | + # - examples/arduino32/dynamicMenuItems |
| 17 | + # - examples/arduino32/nano33ble |
| 18 | + # - examples/arduino32/picoAdafruitDashboard |
| 19 | + # - examples/arduino32/picoAw9523LcdEncoder |
| 20 | + # - examples/arduino32/piPicoTftTouch |
| 21 | + # - examples/arduino32/stm32DuinoDemo |
| 22 | + # MBED |
| 23 | + # - examples/mbed/stm32EncoderLcdI2c |
| 24 | + # - examples/mbed/stm32f429FrameBuffer |
| 25 | + # - examples/mbed/stm32OledEncoder |
| 26 | + include: |
| 27 | + # AVR |
| 28 | + - example: examples/avr/adafruitST7735Mega |
| 29 | + board: megaatmega2560 |
| 30 | + - example: examples/avr/analogDfRobot |
| 31 | + board: megaatmega2560 |
| 32 | + - example: examples/avr/analogJoystick1306Ascii |
| 33 | + board: megaatmega2560 |
| 34 | + - example: examples/avr/keyboardEthernetShield |
| 35 | + board: megaatmega2560 |
| 36 | + - example: examples/avr/nokia5110 |
| 37 | + board: megaatmega2560 |
| 38 | + # ESP |
| 39 | + - example: examples/esp/esp32Amplifier |
| 40 | + board: esp32dev |
| 41 | + - example: examples/esp/esp32s2Saola |
| 42 | + board: esp32dev |
| 43 | + - example: examples/esp/esp32s3TftEncoder |
| 44 | + board: esp32dev |
| 45 | + - example: examples/esp/esp32SimHub |
| 46 | + board: esp32dev |
| 47 | + - example: examples/esp/esp8266WifiOled |
| 48 | + board: esp01_1m |
| 49 | + - example: examples/esp/espCapTouchTft |
| 50 | + board: esp32dev |
| 51 | + - example: examples/esp/espCapTouchTft |
| 52 | + board: esp01_1m |
| 53 | + - example: examples/esp/simpleU8g2 |
| 54 | + board: esp32dev |
| 55 | + - example: examples/esp/simpleU8g2 |
| 56 | + board: esp01_1m |
| 57 | + |
| 58 | + steps: |
| 59 | + - uses: actions/checkout@v4 |
| 60 | + - uses: actions/cache@v4 |
| 61 | + with: |
| 62 | + path: | |
| 63 | + ~/.cache/pip |
| 64 | + ~/.platformio/.cache |
| 65 | + key: ${{ runner.os }}-pio |
| 66 | + - uses: actions/setup-python@v5 |
| 67 | + with: |
| 68 | + python-version: '3.12' |
| 69 | + - name: Install PlatformIO Core |
| 70 | + run: pip install --upgrade platformio |
| 71 | + |
| 72 | + - name: Build PlatformIO examples |
| 73 | + run: pio ci --lib "." --project-conf=platformio.ini --environment ${{ matrix.board }} ${{ matrix.example }} |
0 commit comments