Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
37a7fb3d
Unverified
Commit
37a7fb3d
authored
Aug 31, 2020
by
Valerii Koval
Committed by
GitHub
Aug 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PlatformIO CI script (#4307)
parent
9d547a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
.github/scripts/install-platformio-esp32.sh
.github/scripts/install-platformio-esp32.sh
+2
-7
No files found.
.github/scripts/install-platformio-esp32.sh
View file @
37a7fb3d
...
...
@@ -12,19 +12,14 @@ echo "Installing Platform ESP32 ..."
python
-m
platformio platform
install
https://github.com/platformio/platform-espressif32.git
>
/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
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()"
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
git clone
--recursive
https://github.com/espressif/arduino-esp32.git
"
$PLATFORMIO_ESP32_PATH
"
>
/dev/null 2>&1
fi
echo
"PlatformIO for ESP32 has been installed"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment