adafruit / ci-arduino

A script that will install all of the common dependencies for testing Arduino library builds using Github Actions
MIT License
115 stars 73 forks source link

Update build_platform.py - Don't install installed arduino libs #175

Closed tyeth closed 8 months ago

tyeth commented 8 months ago

This stops the arduino library dependencies being installed if an existing match is found, which allows us to override the dependencies from latest version to a manually installed version (during a precursor build step)

Needed to allow specifying version 6.x of ArduinoJson rather than latest 7 (breaking changes)

We do this by cloning the 6.x branch into the arduino libraries folder (with correct library name), and the Install Arduino Dependencies step then skips any existing libraries:

  1. https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/actions/runs/7462582364/job/20305404144#step:7:9
  2. https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/actions/runs/7462582364/job/20305404144#step:11:25

Tagging @ladyada for review