Skip to content

Commit a19c32b

Browse files
committed
Simpler pio install
1 parent 3c6f5f9 commit a19c32b

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

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

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
11
#!/bin/bash
22

3-
export PLATFORMIO_ESP32_PATH="$HOME/.platformio/packages/framework-arduinoespressif32"
4-
53
echo "Installing Python Wheel ..."
64
pip install wheel > /dev/null 2>&1
75

86
echo "Installing PlatformIO ..."
9-
pip install -U https://github.com/platformio/platformio/archive/develop.zip > /dev/null 2>&1
10-
11-
echo "Installing Platform ESP32 ..."
12-
python -m platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage > /dev/null 2>&1
13-
14-
echo "Replacing the framework version ..."
15-
if [[ "$OSTYPE" == "darwin"* ]]; then
16-
sed 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json" > "platform.json"
17-
mv -f "platform.json" "$HOME/.platformio/platforms/espressif32/platform.json"
18-
else
19-
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json"
20-
fi
21-
22-
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
23-
echo "Linking Core ..."
24-
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
25-
else
26-
echo "Cloning Core Repository ..."
27-
git clone https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
28-
fi
29-
30-
echo "PlatformIO for ESP32 has been installed"
7+
pip install -U platformio > /dev/null 2>&1
8+
9+
echo "PlatformIO has been installed"
3110
echo ""
3211

3312

.github/scripts/on-push.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if [ "$BUILD_PIO" -eq 0 ]; then
5151
build_sketches "$FQBN" "$GITHUB_WORKSPACE/examples" "$CHUNK_INDEX" "$CHUNKS_CNT"
5252
else
5353
# PlatformIO Test
54-
source ./.github/scripts/install-platformio-esp32.sh
54+
source ./.github/scripts/install-platformio.sh
55+
5556
python -m platformio lib --storage-dir "$GITHUB_WORKSPACE" install
5657
echo "Installing ArduinoJson ..."
5758
python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git > /dev/null 2>&1

0 commit comments

Comments
 (0)