-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
upgrade arduino in CI #7716
upgrade arduino in CI #7716
Conversation
Wow, looks like the
Maybe the Arduino-Tools or whatever has a CI on GH we can steal some bits from? |
FWIW, Judging by the error, might be related to the build cache system. I remember submitting an issue there a long time ago, something about pruning the paths or something...
|
The cause of the panic is that the Line 81 in a2f441b
With Arduino IDE 1.8.10, that assumption worked out due to the presence of the toolsFolders key, but that key was apparently removed between the versions of arduino-builder used by Arduino IDE 1.8.10 and 1.8.11, resulting in the sketchLocation key being last. The trailing comma added by the sed command results in invalid JSON:
{
"additionalFiles": "",
"builtInLibrariesFolders": "/home/runner/arduino_ide/libraries",
"builtInToolsFolders": "/home/runner/arduino_ide/tools-builder",
"compiler.optimization_flags": "",
"customBuildProperties": "",
"fqbn": "esp8266com:esp8266:generic:xtal=80,FlashFreq=40,FlashMode=qio,baud=921600,eesz=4M1M,ip=lm2f,ResetMethod=nodemcu,waveform=phase",
"hardwareFolders": "/home/runner/arduino_ide/hardware,/home/runner/work/Arduino/Arduino/cores",
"otherLibrariesFolders": "/home/runner/Arduino/libraries",
"runtime.ide.version": "10607",
"sketchLocation": "/home/runner/work/Arduino/Arduino/libraries/DNSServer/examples/DNSServer/DNSServer.ino"
}
{
"additionalFiles": "",
"builtInLibrariesFolders": "/home/runner/arduino_ide/libraries",
"builtInToolsFolders": "/home/runner/arduino_ide/tools-builder",
"compiler.optimization_flags": "",
"customBuildProperties": "",
"fqbn": "esp8266com:esp8266:generic:xtal=80,FlashFreq=40,FlashMode=qio,baud=921600,eesz=4M1M,ip=lm2f,ResetMethod=nodemcu,waveform=phase",
"hardwareFolders": "/home/runner/arduino_ide/hardware,/home/runner/work/Arduino/Arduino/cores",
"otherLibrariesFolders": "/home/runner/Arduino/libraries",
"runtime.ide.version": "10607",
"sketchLocation": "/home/runner/work/Arduino/Arduino/libraries/ESP8266HTTPClient/examples/DigestAuthorization/DigestAuthorization.ino",
} I think Matthijs's suggestion from arduino/arduino-cli#1118 (comment) of using |
@d-a-v, suggest (untested, but individual jq command worked in the CLI for me):
|
arduino-latest is now used again in CI, thanks to Arduino folks (@matthijskooijman, @per1234) and @earlephilhower ! |
No description provided.