|
20 | 20 | LIBRARIES: Arduino_DebugUtils WiFi101 WiFiNINA MKRGSM MKRNB MKRWAN |
21 | 21 | ARDUINOCORE_MBED_STAGING_PATH: extras/ArduinoCore-mbed |
22 | 22 | ARDUINOCORE_API_STAGING_PATH: extras/ArduinoCore-API |
| 23 | + SKETCHES_REPORTS_PATH: sketches-reports |
23 | 24 | strategy: |
24 | 25 | matrix: |
25 | 26 | board: |
|
43 | 44 | platform-name: arduino:mbed |
44 | 45 | - fqbn: "esp8266:esp8266:huzzah" |
45 | 46 | platform-name: esp8266:esp8266 |
| 47 | + - fqbn: "esp32:esp32:esp32" |
| 48 | + platform-name: esp32:esp32 |
46 | 49 |
|
47 | 50 | # Make board type-specific customizations to the matrix jobs |
48 | 51 | include: |
|
65 | 68 | # Install ESP8266 platform via Boards Manager |
66 | 69 | - name: esp8266:esp8266 |
67 | 70 | source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| 71 | + - board: |
| 72 | + platform-name: esp32:esp32 |
| 73 | + platforms: | |
| 74 | + # Install ESP32 platform via Boards Manager |
| 75 | + - name: esp32:esp32 |
| 76 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
68 | 77 |
|
69 | 78 | steps: |
70 | 79 | - uses: actions/checkout@v1 |
@@ -95,18 +104,23 @@ jobs: |
95 | 104 | run: | |
96 | 105 | mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino" |
97 | 106 |
|
| 107 | + - name: Install ESP32 platform dependencies |
| 108 | + if: matrix.board.platform-name == 'esp32:esp32' |
| 109 | + run: pip3 install pyserial |
| 110 | + |
98 | 111 | - name: Compile examples |
99 | | - uses: arduino/actions/libraries/compile-examples@master |
| 112 | + uses: arduino/compile-sketches@main |
100 | 113 | with: |
101 | 114 | platforms: ${{ matrix.platforms }} |
102 | 115 | fqbn: ${{ matrix.board.fqbn }} |
103 | 116 | libraries: ${{ env.LIBRARIES }} |
104 | 117 | size-report-sketch: 'ConnectionHandlerDemo' |
105 | 118 | enable-size-deltas-report: 'true' |
| 119 | + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} |
106 | 120 |
|
107 | 121 | - name: Save memory usage change report as artifact |
108 | 122 | if: github.event_name == 'pull_request' |
109 | 123 | uses: actions/upload-artifact@v1 |
110 | 124 | with: |
111 | | - name: 'size-deltas-reports' |
112 | | - path: 'size-deltas-reports' |
| 125 | + name: ${{ env.SKETCHES_REPORTS_PATH }} |
| 126 | + path: ${{ env.SKETCHES_REPORTS_PATH }} |
0 commit comments