Skip to content

Commit 1f953c9

Browse files
committed
Put arduino-cli on PATH before using it
1 parent eefdefd commit 1f953c9

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/cross-build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,17 @@ jobs:
261261

262262
# arduino.yml compiles the sketches inside the *installed* wolfSSL Arduino
263263
# library, never this repo's Arduino/sketches/*, so nothing built these.
264-
- name: Install arduino-cli and the samd core
264+
# sudo drops BINDIR, so let the installer use its default $PWD/bin and put
265+
# that on PATH -- GITHUB_PATH only applies to later steps, hence the split.
266+
- name: Install arduino-cli
267+
run: |
268+
set -euo pipefail
269+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
270+
echo "$PWD/bin" >> "$GITHUB_PATH"
271+
272+
- name: Install the samd core
265273
run: |
266274
set -euo pipefail
267-
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh \
268-
| BINDIR=/usr/local/bin sudo sh
269275
arduino-cli core update-index
270276
arduino-cli core install arduino:samd
271277

0 commit comments

Comments
 (0)