Skip to content

Commit 170e821

Browse files
committed
ci(tests): Fix workflow errors
1 parent 0fa4aa6 commit 170e821

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
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

+14
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ on:
1212
description: 'Chip to run tests for'
1313
required: true
1414

15+
env:
16+
DEBIAN_FRONTEND: noninteractive
17+
18+
defaults:
19+
run:
20+
shell: bash
21+
1522
jobs:
1623
hardware-test:
1724
name: Hardware ${{ inputs.chip }} ${{ inputs.type }} tests
@@ -48,6 +55,13 @@ jobs:
4855
- name: Checkout user repository
4956
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
5057
uses: actions/checkout@v4
58+
with:
59+
sparse-checkout: |
60+
*
61+
62+
- name: List files
63+
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
64+
run: ls -la
5165

5266
# setup-python currently only works on ubuntu images
5367
# - uses: actions/setup-python@v5

0 commit comments

Comments
 (0)