Skip to content

Commit ffef149

Browse files
authored
Fix arduino-cli path error in workflow
- Explicitly set BINDIR during arduino-cli installation. - Use absolute path for arduino-cli during core setup to prevent 'command not found' errors. - Ensure bin directory creation before installation.
1 parent b16930c commit ffef149

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/compile-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ jobs:
1212

1313
- name: Install Arduino CLI
1414
run: |
15-
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
15+
mkdir -p $HOME/bin
16+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=$HOME/bin sh
1617
echo "$HOME/bin" >> $GITHUB_PATH
1718
1819
- name: Setup RP2040 Core
1920
run: |
20-
arduino-cli core update-index
21-
arduino-cli core update-index --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
22-
arduino-cli core install rp2040:rp2040 --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
21+
# Use the full path for the first call to ensure it's found
22+
$HOME/bin/arduino-cli core update-index
23+
$HOME/bin/arduino-cli core update-index --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
24+
$HOME/bin/arduino-cli core install rp2040:rp2040 --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
2325
2426
- name: Link Library
2527
run: |

0 commit comments

Comments
 (0)