Skip to content

Commit 4de3ea9

Browse files
authored
Cleanly install PlatformIO platform from scratch (earlephilhower#2982)
Prevents weird update errors stemming from an already installed platform (cached), then updating some files in it manually and then pio pkg updating it.
1 parent 68f1da5 commit 4de3ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ jobs:
268268
run: |
269269
python -m pip install --upgrade pip
270270
pip install --upgrade platformio
271+
rm -rf ~/.platformio/platforms/raspberrypi*
271272
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
272-
pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
273273
pio pkg install --global --tool symlink://.
274274
cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
275275
- name: Build Multicore Example
@@ -325,8 +325,8 @@ jobs:
325325
run: |
326326
python -m pip install --upgrade pip
327327
pip install --upgrade platformio
328+
rm -rf ~/.platformio/platforms/raspberrypi*
328329
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
329-
pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
330330
pio pkg install --global --tool symlink://.
331331
cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
332332
- name: Build Every Variant

0 commit comments

Comments
 (0)