From b91f4d3b6d12b84b7dbec7d3c8168564100a20ab Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 21 May 2024 10:34:05 +0300 Subject: [PATCH] Install arduino-cli to /usr/local/bin The Arduino docs probably has mistake offering non-existent ~/local/bin path instead of ~/.local/bin. Some systems lack ~/.local/bin as well, so simply use /usr/local/bin. Also install arduino-cli in CI the same way as in the docs to check them. --- .github/workflows/build.yml | 2 +- docs/build.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 704b6f1..eedd6a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Arduino CLI - uses: arduino/setup-arduino-cli@v1.1.1 + run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh - name: Build firmware run: make diff --git a/docs/build.md b/docs/build.md index 9ea0fc8..bf53514 100644 --- a/docs/build.md +++ b/docs/build.md @@ -14,7 +14,7 @@ cd flix 1. Install Arduino CLI: ```bash - curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/local/bin sh + curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh ``` 2. Install Gazebo 11: