Closed
Description
I am trying to install the Arduino CLI in a workflow defined in GitHub Actions (beta).
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
Running this I get:
Installing in /home/runner/work/arduino-nmea-checksum/arduino-nmea-checksum/bin
ARCH=64bit
OS=Linux
Using curl as download tool
sh: 81: [: x0.5.0: unexpected operator
TAG=0.5.0
sh: 125: [: Linux: unexpected operator
CLI_DIST=arduino-cli_0.5.0_Linux_64bit.tar.gz
Downloading https://downloads.arduino.cc/arduino-cli/arduino-cli_0.5.0_Linux_64bit.tar.gz
arduino-cli not found. Did you add /home/runner/work/arduino-nmea-checksum/arduino-nmea-checksum/bin to your $PATH?
Failed to install arduino-cli
The mentioned lines look like normal conditional statements with successful variable substitutions in them, not sure why the would be problematic.
I found #348 and attempted to use the suggested fix:
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/home/runner/work/arduino-nmea-checksum/arduino-nmea-checksum/bin sh
However with this I just get:
/home/runner/work/arduino-nmea-checksum/arduino-nmea-checksum/bin ($BINDIR) folder not found. Please create it before continuing.
Failed to install arduino-cli
What could be the problem? You can see my repo here:
https://github.com/TomasHubelbauer/arduino-nmea-checksum
The branch where I'm trying this is arduino-cli-latest
and the corresponding workflow runs with their captured logs are accessible using the Actions tab. There are two runs titled after the branch and the contain the logs that I've quoted above.
- CLI version (output of
arduino-cli version
): latest - OS and platform: Ubuntu latest
Metadata
Metadata
Assignees
Labels
No labels