@@ -5,12 +5,13 @@ name: Arduino-Pico CI
55
66on :
77 pull_request :
8+ workflow_dispatch :
89
910jobs :
1011
1112# Consistent style, spelling
1213 astyle :
13- name : Spelling, Style, Boards, Package
14+ name : Spelling, Style, Boards, Package, PIO
1415 runs-on : ubuntu-latest
1516 steps :
1617 - uses : actions/checkout@v4
1920 - name : Run codespell
2021 uses : codespell-project/actions-codespell@v2
2122 with :
22- skip : ./ArduinoCore-API,./libraries/ESP8266SdFat,./libraries/Adafruit_TinyUSB_Arduino,./libraries/LittleFS/lib,./tools/pyserial,./pico-sdk,./.github,./docs/i2s.rst,./cores/rp2040/api,./libraries/FreeRTOS,./tools/libbearssl/bearssl,./include,./libraries/WiFi/examples/BearSSL_Server,./ota/uzlib,./libraries/http-parser/lib,./libraries/WebServer/examples/HelloServerBearSSL/HelloServerBearSSL.ino,./libraries/HTTPUpdateServer/examples/SecureBearSSLUpdater/SecureBearSSLUpdater.ino,./.git,./libraries/FatFS/lib/fatfs,./libraries/FatFS/src/diskio.h,./libraries/FatFS/src/ff.cpp,./libraries/FatFS/src/ffconf.h,./libraries/FatFS/src/ffsystem.cpp,./libraries/FatFS/src/ff.h,./libraries/lwIP_WINC1500/src/driver,./libraries/lwIP_WINC1500/src/common,./libraries/lwIP_WINC1500/src/bus_wrapper,./libraries/lwIP_WINC1500/src/spi_flash
23- ignore_words_list : ser,dout,shiftIn,acount,froms
24- - name : Get submodules for following tests
25- run : git submodule update --init
26- - name : Check package references
27- run : |
28- ./tests/ci/pkgrefs_test.sh
23+ skip : ./ArduinoCore-API,./libraries/ESP8266SdFat,./libraries/Adafruit_TinyUSB_Arduino,./libraries/LittleFS/lib,./tools/pyserial,./pico-sdk,./.github,./docs/i2s.rst,./cores/rp2040/api,./FreeRTOS,./tools/libbearssl/bearssl,./include,./libraries/WiFi/examples/BearSSL_Server,./ota/uzlib,./libraries/http-parser/lib,./libraries/WebServer/examples/HelloServerBearSSL/HelloServerBearSSL.ino,./libraries/HTTPUpdateServer/examples/SecureBearSSLUpdater/SecureBearSSLUpdater.ino,./.git,./libraries/FatFS/lib/fatfs,./libraries/FatFS/src/diskio.h,./libraries/FatFS/src/ff.cpp,./libraries/FatFS/src/ffconf.h,./libraries/FatFS/src/ffsystem.cpp,./libraries/FatFS/src/ff.h,./libraries/lwIP_WINC1500/src/driver,./libraries/lwIP_WINC1500/src/common,./libraries/lwIP_WINC1500/src/bus_wrapper,./libraries/lwIP_WINC1500/src/spi_flash,./libraries/WiFi/examples/BearSSL_Validation/certs.h
24+ ignore_words_list : ser,dout,shiftIn,acount,froms,ThirdParty
2925 - name : Check boards.txt was not edited after makeboards.py
3026 run : |
3127 ./tools/makeboards.py
3834 ./tests/restyle.sh
3935 # If anything changed, GIT should return an error and fail the test
4036 git diff --exit-code
37+ - name : Check compiled PIO files
38+ run : |
39+ (cd ./tools && ./get.py)
40+ ./tools/makepio.py
41+ # If anything changed, GIT should return an error and fail the test
42+ git diff -w --exit-code
43+ - name : Check package references
44+ run : |
45+ ./tests/ci/pkgrefs_test.sh
4146
4247# Build all examples on linux (core and Arduino IDE)
4348 build-linux :
@@ -196,7 +201,7 @@ jobs:
196201 name : Mac
197202 strategy :
198203 matrix :
199- os : [macOS-12 , macOS-14]
204+ os : [macOS-13 , macOS-14]
200205 runs-on : ${{ matrix.os }}
201206 steps :
202207 - uses : actions/checkout@v4
@@ -264,8 +269,8 @@ jobs:
264269 run : |
265270 python -m pip install --upgrade pip
266271 pip install --upgrade platformio
272+ rm -rf ~/.platformio/platforms/raspberrypi*
267273 pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
268- pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
269274 pio pkg install --global --tool symlink://.
270275 cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
271276 - name : Build Multicore Example
@@ -289,7 +294,7 @@ jobs:
289294 runs-on : ubuntu-latest
290295 strategy :
291296 matrix :
292- chunk : [0, 1]
297+ chunk : [0, 1, 2, 3 ]
293298 steps :
294299 - uses : actions/checkout@v4
295300 with :
@@ -321,16 +326,16 @@ jobs:
321326 run : |
322327 python -m pip install --upgrade pip
323328 pip install --upgrade platformio
329+ rm -rf ~/.platformio/platforms/raspberrypi*
324330 pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
325- pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
326331 pio pkg install --global --tool symlink://.
327332 cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
328333 - name : Build Every Variant
329334 run : |
330335 cnt=0
331336 for b in $(cut -f1 -d. /home/runner/work/arduino-pico/arduino-pico/boards.txt | sed 's/#.*//' | sed 's/^menu$//' | sort -u); do
332337 cnt=$((cnt + 1))
333- rem=$((cnt % 2 ))
338+ rem=$((cnt % 4 ))
334339 if [ $rem == ${{ matrix.chunk }} ]; then
335340 pio ci --board=$b -O "platform_packages=framework-arduinopico@symlink:///home/runner/work/arduino-pico/arduino-pico" libraries/rp2040/examples/Bootsel/Bootsel.ino
336341 fi
0 commit comments