Skip to content

Commit ef5c6b9

Browse files
authored
fix(release): Fix install test on release (#10256)
1 parent 77d8095 commit ef5c6b9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Diff for: .github/scripts/on-release.sh

+2-8
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,9 @@ export PATH="/home/runner/bin:$PATH"
366366
source ./.github/scripts/install-arduino-cli.sh
367367

368368
echo "Testing $PACKAGE_JSON_DEV install ..."
369-
echo "Updating index ..."
370-
arduino-cli core update-index --additional-urls "file://$OUTPUT_DIR/$PACKAGE_JSON_DEV"
371-
if [ $? -ne 0 ]; then echo "ERROR: Failed to update index ($?)"; exit 1; fi
372369

373370
echo "Installing esp32 ..."
374-
arduino-cli core install esp32:esp32
371+
arduino-cli core install esp32:esp32 --additional-urls "file://$OUTPUT_DIR/$PACKAGE_JSON_DEV"
375372
if [ $? -ne 0 ]; then echo "ERROR: Failed to install esp32 ($?)"; exit 1; fi
376373

377374
echo "Compiling example ..."
@@ -386,12 +383,9 @@ echo "Test successful!"
386383

387384
if [ "$RELEASE_PRE" == "false" ]; then
388385
echo "Testing $PACKAGE_JSON_REL install ..."
389-
echo "Updating index ..."
390-
arduino-cli core update-index --additional-urls "file://$OUTPUT_DIR/$PACKAGE_JSON_REL"
391-
if [ $? -ne 0 ]; then echo "ERROR: Failed to update index ($?)"; exit 1; fi
392386

393387
echo "Installing esp32 ..."
394-
arduino-cli core install esp32:esp32
388+
arduino-cli core install esp32:esp32 --additional-urls "file://$OUTPUT_DIR/$PACKAGE_JSON_REL"
395389
if [ $? -ne 0 ]; then echo "ERROR: Failed to install esp32 ($?)"; exit 1; fi
396390

397391
echo "Compiling example ..."

0 commit comments

Comments
 (0)