Skip to content

Commit 2e657a7

Browse files
committed
Platform IO install script fixed
1 parent 000482e commit 2e657a7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/scripts/install-platformio-esp32.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ python -m platformio platform install https://github.com/platformio/platform-esp
1414
echo "Replacing the framework version ..."
1515
python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/espressif32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoespressif32']['version'] = '*'; del data['packages']['framework-arduinoespressif32']['owner']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
1616

17-
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
18-
echo "Linking Core..."
19-
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
20-
else
21-
echo "Cloning Core Repository ..."
22-
git clone --recursive https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
23-
fi
17+
# I don't get the code below, you'd want to test the source code in the current repository (forked or not), not in the espressif repo right?
18+
#if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
19+
echo "Linking Core..."
20+
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
21+
#else
22+
# echo "Cloning Core Repository ..."
23+
# git clone --recursive https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
24+
#fi
2425

2526
echo "PlatformIO for ESP32 has been installed"
2627
echo ""

0 commit comments

Comments
 (0)