Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 7424d33

Browse files
committed
Refactored 'ARDUINO_SDK_PATH' env variable to 'environment' section in 'AppVeyor'.
Also refactored some env variables defined during the 'install' phase to be standard variables as they're not required to be environmental. At last removed cache dependency from SDK path to version, at least for now.
1 parent d0f642c commit 7424d33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

appveyor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ environment:
55
matrix:
66
- ARDUINO_SDK_VERSION: 1.8.2
77
- ARDUINO_SDK_VERSION: 1.8.6
8+
ARDUINO_SDK_PATH: $pwd\arduino-sdk\arduino-$env:ARDUINO_SDK_VERSION
89
cache:
9-
- '%ARDUINO_SDK_PATH% -> %ARDUINO_SDK_VERSION%'
10+
- '%ARDUINO_SDK_PATH%'
1011
install:
1112
- ps: cinst unzip
12-
- ps: $env:ARDUINO_SDK_PATH = "$pwd\arduino-sdk\arduino-$env:ARDUINO_SDK_VERSION"
13-
- ps: $env:ARDUINO_SDK_FILE = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
13+
- ps: $sdk_file = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
1414
- ps: |
1515
if ( -Not (Test-Path -Path $env:ARDUINO_SDK_PATH) )
1616
{
17-
$env:ARDUINO_SDK_URI = "https://downloads.arduino.cc/$env:ARDUINO_SDK_FILE"
18-
wget "$env:ARDUINO_SDK_URI" -O "$env:ARDUINO_SDK_FILE"
19-
unzip "$env:ARDUINO_SDK_FILE" -d "arduino-sdk"
17+
$arduino_sdk_uri = "https://downloads.arduino.cc/$sdk_file"
18+
wget "$arduino_sdk_uri" -O "$sdk_file"
19+
unzip "$sdk_file" -d "arduino-sdk"
2020
}
2121
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
2222
before_build:

0 commit comments

Comments
 (0)