From 170e821a272b6e096429aaf40ed87a2b63f9bb04 Mon Sep 17 00:00:00 2001 From: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:05:42 -0300 Subject: [PATCH] ci(tests): Fix workflow errors --- .github/scripts/install-arduino-cli.sh | 8 +++++++- .github/workflows/tests_hw.yml | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/scripts/install-arduino-cli.sh b/.github/scripts/install-arduino-cli.sh index 8ee0c5cd791..533b39c7ddd 100755 --- a/.github/scripts/install-arduino-cli.sh +++ b/.github/scripts/install-arduino-cli.sh @@ -41,6 +41,12 @@ fi if [ ! -d "$ARDUINO_IDE_PATH" ] || [ ! -f "$ARDUINO_IDE_PATH/arduino-cli" ]; then echo "Installing Arduino CLI on $OS_NAME ..." mkdir -p "$ARDUINO_IDE_PATH" - curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR="$ARDUINO_IDE_PATH" sh + if [ "$OS_IS_WINDOWS" == "1" ]; then + curl -fsSL https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip -o arduino-cli.zip + unzip -q arduino-cli.zip -d "$ARDUINO_IDE_PATH" + rm arduino-cli.zip + else + curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR="$ARDUINO_IDE_PATH" sh + fi fi diff --git a/.github/workflows/tests_hw.yml b/.github/workflows/tests_hw.yml index e6e1f7a3251..ec0619685b2 100644 --- a/.github/workflows/tests_hw.yml +++ b/.github/workflows/tests_hw.yml @@ -12,6 +12,13 @@ on: description: 'Chip to run tests for' required: true +env: + DEBIAN_FRONTEND: noninteractive + +defaults: + run: + shell: bash + jobs: hardware-test: name: Hardware ${{ inputs.chip }} ${{ inputs.type }} tests @@ -48,6 +55,13 @@ jobs: - name: Checkout user repository if: ${{ steps.check-tests.outputs.enabled == 'true' }} uses: actions/checkout@v4 + with: + sparse-checkout: | + * + + - name: List files + if: ${{ steps.check-tests.outputs.enabled == 'true' }} + run: ls -la # setup-python currently only works on ubuntu images # - uses: actions/setup-python@v5