File tree Expand file tree Collapse file tree 2 files changed +5
-25
lines changed Expand file tree Collapse file tree 2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- export PLATFORMIO_ESP32_PATH=" $HOME /.platformio/packages/framework-arduinoespressif32"
4
-
5
3
echo " Installing Python Wheel ..."
6
4
pip install wheel > /dev/null 2>&1
7
5
8
6
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"
31
10
echo " "
32
11
33
12
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ if [ "$BUILD_PIO" -eq 0 ]; then
51
51
build_sketches " $FQBN " " $GITHUB_WORKSPACE /examples" " $CHUNK_INDEX " " $CHUNKS_CNT "
52
52
else
53
53
# PlatformIO Test
54
- source ./.github/scripts/install-platformio-esp32.sh
54
+ source ./.github/scripts/install-platformio.sh
55
+
55
56
python -m platformio lib --storage-dir " $GITHUB_WORKSPACE " install
56
57
echo " Installing ArduinoJson ..."
57
58
python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments