Simpler pio install
This commit is contained in:
parent
3c6f5f914c
commit
a19c32bba3
|
@ -1,33 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export PLATFORMIO_ESP32_PATH="$HOME/.platformio/packages/framework-arduinoespressif32"
|
|
||||||
|
|
||||||
echo "Installing Python Wheel ..."
|
echo "Installing Python Wheel ..."
|
||||||
pip install wheel > /dev/null 2>&1
|
pip install wheel > /dev/null 2>&1
|
||||||
|
|
||||||
echo "Installing PlatformIO ..."
|
echo "Installing PlatformIO ..."
|
||||||
pip install -U https://github.com/platformio/platformio/archive/develop.zip > /dev/null 2>&1
|
pip install -U platformio > /dev/null 2>&1
|
||||||
|
|
||||||
echo "Installing Platform ESP32 ..."
|
echo "PlatformIO has been installed"
|
||||||
python -m platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage > /dev/null 2>&1
|
|
||||||
|
|
||||||
echo "Replacing the framework version ..."
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
||||||
sed 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json" > "platform.json"
|
|
||||||
mv -f "platform.json" "$HOME/.platformio/platforms/espressif32/platform.json"
|
|
||||||
else
|
|
||||||
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
|
|
||||||
echo "Linking Core ..."
|
|
||||||
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
|
|
||||||
else
|
|
||||||
echo "Cloning Core Repository ..."
|
|
||||||
git clone https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "PlatformIO for ESP32 has been installed"
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,8 @@ if [ "$BUILD_PIO" -eq 0 ]; then
|
||||||
build_sketches "$FQBN" "$GITHUB_WORKSPACE/examples" "$CHUNK_INDEX" "$CHUNKS_CNT"
|
build_sketches "$FQBN" "$GITHUB_WORKSPACE/examples" "$CHUNK_INDEX" "$CHUNKS_CNT"
|
||||||
else
|
else
|
||||||
# PlatformIO Test
|
# PlatformIO Test
|
||||||
source ./.github/scripts/install-platformio-esp32.sh
|
source ./.github/scripts/install-platformio.sh
|
||||||
|
|
||||||
python -m platformio lib --storage-dir "$GITHUB_WORKSPACE" install
|
python -m platformio lib --storage-dir "$GITHUB_WORKSPACE" install
|
||||||
echo "Installing ArduinoJson ..."
|
echo "Installing ArduinoJson ..."
|
||||||
python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git > /dev/null 2>&1
|
python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git > /dev/null 2>&1
|
||||||
|
|
Loading…
Reference in New Issue