Skip to content

Commit 5b42e73

Browse files
authored
upgrade arduino in CI (#7716)
Thanks to @matthijskooijman, @per1234 and @earlephilhower
1 parent a25895a commit 5b42e73

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/common.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function build_sketches()
8282
if [ -e $cache_dir/core/*.a ]; then
8383
# We need to preserve the build.options.json file and replace the last .ino
8484
# with this sketch's ino file, or builder will throw everything away.
85-
sed -i "s,^.*sketchLocation.*$, \"sketchLocation\": \"$sketch\"\,,g" $build_dir/build.options.json
85+
jq '."sketchLocation" = "'$sketch'"' $build_dir/build.options.json > $build_dir/build.options.json.tmp
86+
mv $build_dir/build.options.json.tmp $build_dir/build.options.json
8687
# Set the time of the cached core.a file to the future so the GIT header
8788
# we regen won't cause the builder to throw it out and rebuild from scratch.
8889
touch -d 'now + 1 day' $cache_dir/core/*.a
@@ -153,11 +154,11 @@ function install_libraries()
153154

154155
function install_ide()
155156
{
156-
#local idever='nightly'
157-
#local ideurl='https://www.arduino.cc/download.php?f=/arduino-nightly'
157+
local idever='nightly'
158+
local ideurl='https://www.arduino.cc/download.php?f=/arduino-nightly'
158159

159-
local idever='1.8.10'
160-
local ideurl="https://downloads.arduino.cc/arduino-$idever"
160+
#local idever='1.8.10'
161+
#local ideurl="https://downloads.arduino.cc/arduino-$idever"
161162

162163
echo "using Arduino IDE distribution ${idever}"
163164

0 commit comments

Comments
 (0)