Skip to content

Commit 715f399

Browse files
committed
Reverted scripts back to it's original form
1 parent 0b2ae4e commit 715f399

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/scripts/install-arduino-core-esp32.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ if [ ! -d "$ARDUINO_ESP32_PATH" ]; then
1515
pip install requests > /dev/null
1616
fi
1717

18-
echo "Linking Core..."
19-
ln -s $GITHUB_WORKSPACE "$ARDUINO_ESP32_PATH"
18+
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
19+
echo "Linking Core..."
20+
ln -s $GITHUB_WORKSPACE esp32
21+
else
22+
echo "Cloning Core Repository..."
23+
git clone https://github.com/espressif/arduino-esp32.git esp32 > /dev/null 2>&1
24+
fi
2025

2126
echo "Updating Submodules ..."
2227
cd esp32

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ 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-
echo "Linking Core..."
18-
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
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
1924

2025
echo "PlatformIO for ESP32 has been installed"
2126
echo ""

0 commit comments

Comments
 (0)