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

Commit 2748f8f

Browse files
committed
Refactored 'AppVeyor' config, 'ARDUINO_SDK_PATH' is no longer hardcoded.
1 parent 851a487 commit 2748f8f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

appveyor.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@ version: '{build}'
22
image: Visual Studio 2017
33
environment:
44
MINGW_PATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
5+
ARDUINO_SDK_BASE_PATH: C:\arduino-sdk\arduino
56
matrix:
67
- ARDUINO_SDK_VERSION: 1.8.2
7-
ARDUINO_SDK_PATH: C:\arduino-sdk\arduino-1.8.2
88
- ARDUINO_SDK_VERSION: 1.8.7
9-
ARDUINO_SDK_PATH: C:\arduino-sdk\arduino-1.8.7
109
cache:
11-
- '%ARDUINO_SDK_PATH%'
10+
- '%ARDUINO_SDK_BASE_PATH%-%ARDUINO_SDK_VERSION%'
1211
install:
1312
- ps: cinst unzip
1413
- ps: $sdk_file = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
14+
# Append SDK's version to SDK's base path
15+
- ps: $env:ARDUINO_SDK_PATH = "$env:ARDUINO_SDK_BASE_PATH-$env:ARDUINO_SDK_VERSION"
1516
- ps: cd C:\
1617
- ps: |
1718
if ( -Not (Test-Path -Path $env:ARDUINO_SDK_PATH) )
1819
{
19-
$arduino_sdk_uri = "https://downloads.arduino.cc/$sdk_file"
20-
wget "$arduino_sdk_uri" -O "$sdk_file"
21-
unzip "$sdk_file" -d "arduino-sdk"
20+
$arduino_sdk_uri = "https://downloads.arduino.cc/$sdk_file"
21+
wget "$arduino_sdk_uri" -O "$sdk_file"
22+
unzip "$sdk_file" -d "arduino-sdk"
2223
}
2324
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
2425
- ps: $env:Path += ";$env:MINGW_PATH"

0 commit comments

Comments
 (0)