-
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.
Fixed scripts: install_yamlpath.* and install_arduino_cores.*.
- Loading branch information
1 parent
d77aa3a
commit 25bc6f0
Showing
5 changed files
with
33 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,24 @@ | ||
# 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 | ||
# Install yamlpath. | ||
# https://github.com/wwkimball/yamlpath | ||
# https://pypi.org/project/yamlpath/ | ||
|
||
# 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 | ||
# Validate if python launcher is installed | ||
which py.exe | ||
echo Found python interpreter | ||
python --version | ||
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 | ||
# Validate if pip is installed | ||
which pip.exe | ||
echo | ||
|
||
echo Installing "esp8266:esp8266" core... | ||
arduino-cli core install "esp8266:esp8266" | ||
# Installing yamlpath. | ||
echo Proceeding with instaling yamlpath... | ||
pip install yamlpath | ||
echo | ||
echo | ||
|
||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
|
||
# Also install esp32:esp32 ? | ||
echo yamlpath was installed on the system without error. | ||
echo. |
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