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

Commit d0f642c

Browse files
committed
Added build cache in 'AppVeyor' for the Arduino SDK.
SDK won't be downloaded from the web if its' cache exists.
1 parent ec3033e commit d0f642c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

appveyor.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ environment:
55
matrix:
66
- ARDUINO_SDK_VERSION: 1.8.2
77
- ARDUINO_SDK_VERSION: 1.8.6
8+
cache:
9+
- '%ARDUINO_SDK_PATH% -> %ARDUINO_SDK_VERSION%'
810
install:
911
- ps: cinst unzip
10-
- ps: $env:ARDUINO_SDK_FILE = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
11-
- ps: $env:ARDUINO_SDK_URI = "https://downloads.arduino.cc/$env:ARDUINO_SDK_FILE"
12-
- ps: wget "$env:ARDUINO_SDK_URI" -O "$env:ARDUINO_SDK_FILE"
13-
- ps: unzip "$env:ARDUINO_SDK_FILE" -d "arduino-sdk"
1412
- 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"
14+
- ps: |
15+
if ( -Not (Test-Path -Path $env:ARDUINO_SDK_PATH) )
16+
{
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"
20+
}
1521
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
1622
before_build:
1723
- ps: Copy-Item -Path $env:MINGW_PATH\mingw32-make.exe -Destination $env:MINGW_PATH\make.exe

0 commit comments

Comments
 (0)