Skip to content

fix(release): Fix install test on release #10256

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

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/scripts/on-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,9 @@ export PATH="/home/runner/bin:$PATH"
source ./.github/scripts/install-arduino-cli.sh

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

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

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

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

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

echo "Compiling example ..."
Expand Down