Skip to content

Commit 4a92902

Browse files
committed
Fix CLI
1 parent 47a4471 commit 4a92902

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Diff for: .github/scripts/install-arduino-cli.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ fi
4141
if [ ! -d "$ARDUINO_IDE_PATH" ] || [ ! -f "$ARDUINO_IDE_PATH/arduino-cli" ]; then
4242
echo "Installing Arduino CLI on $OS_NAME ..."
4343
mkdir -p "$ARDUINO_IDE_PATH"
44-
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR="$ARDUINO_IDE_PATH" sh
44+
if [ "$OS_IS_WINDOWS" == "1" ]; then
45+
curl -fsSL https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip -o arduino-cli.zip
46+
unzip -q arduino-cli.zip -d "$ARDUINO_IDE_PATH"
47+
rm arduino-cli.zip
48+
else
49+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR="$ARDUINO_IDE_PATH" sh
50+
fi
4551
fi
4652

Diff for: .github/workflows/tests_hw.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
env:
1616
DEBIAN_FRONTEND: noninteractive
1717

18+
defaults:
19+
run:
20+
shell: bash
21+
1822
jobs:
1923
hardware-test:
2024
name: Hardware ${{ inputs.chip }} ${{ inputs.type }} tests
@@ -37,7 +41,6 @@ jobs:
3741
3842
- name: Evaluate if tests should be run
3943
id: check-tests
40-
shell: bash
4144
run: |
4245
cache_exists=${{ steps.cache-results.outputs.cache-hit == 'true' }}
4346
enabled=true

0 commit comments

Comments
 (0)