Skip to content

Fix PlatformIO CI runs when board files change with respect to cached platform install #2981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

# Consistent style, spelling
astyle:
name: Spelling, Style, Boards, Package, PIO
name: Spelling, Style, Boards, Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,6 +21,11 @@ jobs:
with:
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
ignore_words_list: ser,dout,shiftIn,acount,froms
- name: Get submodules for following tests
run: git submodule update --init
- name: Check package references
run: |
./tests/ci/pkgrefs_test.sh
- name: Check boards.txt was not edited after makeboards.py
run: |
./tools/makeboards.py
Expand All @@ -33,15 +38,6 @@ jobs:
./tests/restyle.sh
# If anything changed, GIT should return an error and fail the test
git diff --exit-code
- name: Check compiled PIO files
run: |
(cd ./tools && ./get.py)
./tools/makepio.py
# If anything changed, GIT should return an error and fail the test
git diff -w --exit-code
- name: Check package references
run: |
./tests/ci/pkgrefs_test.sh

# Build all examples on linux (core and Arduino IDE)
build-linux:
Expand Down Expand Up @@ -200,7 +196,7 @@ jobs:
name: Mac
strategy:
matrix:
os: [macOS-13, macOS-14]
os: [macOS-12, macOS-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -268,8 +264,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
rm -rf ~/.platformio/platforms/raspberrypi*
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
pio pkg install --global --tool symlink://.
cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
- name: Build Multicore Example
Expand Down Expand Up @@ -325,8 +321,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
rm -rf ~/.platformio/platforms/raspberrypi*
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
pio pkg install --global --tool symlink://.
cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
- name: Build Every Variant
Expand All @@ -338,4 +334,4 @@ jobs:
if [ $rem == ${{ matrix.chunk }} ]; then
pio ci --board=$b -O "platform_packages=framework-arduinopico@symlink:///home/runner/work/arduino-pico/arduino-pico" libraries/rp2040/examples/Bootsel/Bootsel.ino
fi
done
done
3 changes: 2 additions & 1 deletion tools/json/0xcb_helios.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Helios",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/DudesCab.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "DudesCab",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/MyRP_bot.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_adalogger.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 Adalogger",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_can.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 CAN",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_dvi.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 DVI",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_prop_maker.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 Prop-Maker",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_rfm.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 RFM",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_rp2350_adalogger.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2350 Adalogger",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_rp2350_hstx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2350 HSTX",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_scorpio.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 SCORPIO",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_thinkink.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 ThinkINK",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_feather_usb_host.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Feather RP2040 USB Host",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_floppsy.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Floppsy",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_fruitjam.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Fruit Jam RP2350",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_itsybitsy.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "ItsyBitsy RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_kb2040.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "KB2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_macropad2040.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "MacroPad RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_metro.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Metro RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_metro_rp2350.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Metro RP2350",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_qtpy.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "QT Py RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_stemmafriend.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "STEMMA Friend RP2040",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/adafruit_trinkeyrp2040qt.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Trinkey RP2040 QT",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/akana_r1.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Akana R1",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/amken_bunny.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "BunnyBoard",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/amken_revelop.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Revelop",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/amken_revelop_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Revelop eS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/amken_revelop_plus.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Revelop Plus",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/arduino_nano_connect.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Nano RP2040 Connect",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/artronshop_rp2_nano.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "RP2 Nano",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion tools/json/breadstick_raspberry.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"svd_path": "rp2040.svd"
},
"frameworks": [
"arduino"
"arduino",
"picosdk"
],
"name": "Raspberry",
"upload": {
Expand Down
Loading
Loading