-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated scripts to install esp8266 and esp32 arduino cores.
- Loading branch information
1 parent
b0086da
commit c1968f8
Showing
12 changed files
with
212 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
|
||
:: Validate appveyor's environment | ||
if "%APPVEYOR_BUILD_FOLDER%"=="" ( | ||
echo Please define 'APPVEYOR_BUILD_FOLDER' environment variable. | ||
exit /B 1 | ||
) | ||
|
||
:: Call matching script for windows | ||
call "%APPVEYOR_BUILD_FOLDER%\ci\windows\%~n0.bat" | ||
if %errorlevel% neq 0 exit /b %errorlevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
|
||
:: Validate GitHub CI's environment | ||
if "%GITHUB_WORKSPACE%"=="" ( | ||
echo Please define 'GITHUB_WORKSPACE' environment variable. | ||
exit /B 1 | ||
) | ||
|
||
:: Call matching script for windows | ||
call "%GITHUB_WORKSPACE%\ci\windows\%~n0.bat" | ||
if %errorlevel% neq 0 exit /b %errorlevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Any commands which fail will cause the shell script to exit immediately | ||
set -e | ||
|
||
# Validate GitHub CI environment | ||
if [ "$GITHUB_WORKSPACE" = "" ]; then | ||
echo "Please define 'GITHUB_WORKSPACE' environment variable."; | ||
exit 1; | ||
fi | ||
|
||
# Call matching script for linux | ||
# and execute the script under the current shell instead of loading another one | ||
this_filename=`basename "$0"` | ||
. $GITHUB_WORKSPACE/ci/linux/$this_filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
board_manager: | ||
additional_urls: | ||
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Any commands which fail will cause the shell script to exit immediately | ||
set -e | ||
|
||
# Set download filename | ||
export ARDUINO_CLI_FILENAME="" | ||
if [ "$RUNNER_OS" = "Linux" ]; then | ||
export ARDUINO_CLI_FILENAME=arduino-cli_latest_Linux_64bit.tar.gz | ||
elif [ "$RUNNER_OS" = "macOS" ]; then | ||
export ARDUINO_CLI_FILENAME=arduino-cli_latest_macOS_64bit.tar.gz | ||
fi | ||
|
||
# Download | ||
echo Downloading file https://downloads.arduino.cc/arduino-cli/$ARDUINO_CLI_FILENAME | ||
wget --no-verbose https://downloads.arduino.cc/arduino-cli/$ARDUINO_CLI_FILENAME | ||
echo | ||
echo | ||
|
||
# Installing | ||
export ARDUINO_CLI_INSTALL_DIR=$HOME/arduino-cli | ||
echo Installing Arduino CLI to directory: $ARDUINO_CLI_INSTALL_DIR | ||
mkdir -p $ARDUINO_CLI_INSTALL_DIR | ||
tar xf $ARDUINO_CLI_FILENAME --directory $ARDUINO_CLI_INSTALL_DIR | ||
echo | ||
echo | ||
|
||
# Verify | ||
echo Searching for arduino cli executable... | ||
export PATH=$PATH:$ARDUINO_CLI_INSTALL_DIR | ||
which arduino-cli | ||
arduino-cli version | ||
echo | ||
echo | ||
|
||
echo Initialize configuration file | ||
# Expecting something like: Config file written: /home/$USER/.arduino15/arduino-cli.yaml | ||
arduino-cli config init | ||
echo | ||
echo | ||
|
||
echo Installing "arduino:avr" core... | ||
arduino-cli core install "arduino:avr" | ||
echo | ||
echo | ||
|
||
echo Installing "esp8266:esp8266" core... | ||
arduino-cli core install "esp8266:esp8266" | ||
echo | ||
echo | ||
|
||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
|
||
# Also install esp32:esp32 ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
board_manager: | ||
additional_urls: | ||
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@echo off | ||
|
||
:: Install yamlpath. | ||
:: https://github.com/wwkimball/yamlpath | ||
:: https://pypi.org/project/yamlpath/ | ||
|
||
:: Validate if python launcher is installed | ||
where py.exe >NUL 2>NUL | ||
if errorlevel 1 ( | ||
echo Command failed. Please install python and python launcher to continue. | ||
exit /B %errorlevel% | ||
) | ||
echo Found python interpreter | ||
python --version | ||
|
||
:: Validate if pip is installed | ||
where pip.exe >NUL 2>NUL | ||
if errorlevel 1 ( | ||
echo Command failed. Please install pip ^(Package Installer Python^) to continue. | ||
exit /B %errorlevel% | ||
) | ||
|
||
:: Installing yamlpath. | ||
echo Proceeding with instaling yamlpath... | ||
pip install yamlpath | ||
if errorlevel 1 ( | ||
echo Command failed. An error was found while installing yamlpath. | ||
exit /B %errorlevel% | ||
) | ||
|
||
echo yamlpath was installed on the system without error. | ||
echo. |