This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
appveyor.yml
58 lines (58 loc) · 1.74 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '{build}'
branches:
except:
- feature/travis-ci # Affects only 'Travis-CI' builds, shouldn't be built
image: Visual Studio 2017
environment:
MINGW_PATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
ARDUINO_SDK_BASE_PATH: C:\arduino-sdk\arduino
matrix:
- ARDUINO_SDK_VERSION: 1.8.2
- ARDUINO_SDK_VERSION: 1.8.9
cache:
- '%ARDUINO_SDK_BASE_PATH%-%ARDUINO_SDK_VERSION% -> %ARDUINO_SDK_VERSION%'
install:
- ps: cinst unzip
- ps: $sdk_file = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
# Append SDK's version to SDK's base path
- ps: $env:ARDUINO_SDK_PATH = "$env:ARDUINO_SDK_BASE_PATH-$env:ARDUINO_SDK_VERSION"
- ps: cd C:\
- ps: |
if ( -Not (Test-Path -Path $env:ARDUINO_SDK_PATH) )
{
$arduino_sdk_uri = "https://downloads.arduino.cc/$sdk_file"
wget "$arduino_sdk_uri" -O "$sdk_file"
unzip -q "$sdk_file" -d "arduino-sdk"
}
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
- ps: $env:Path += ";$env:MINGW_PATH"
build_script:
# Add the MinGW Path to the system PATH temporarily for this session
- ps: cd $env:APPVEYOR_BUILD_FOLDER
- ps: mkdir build
- ps: cd build
- ps: echo "$env:ARDUINO_SDK_PATH"
- ps: >-
cmake -G "MinGW Makefiles"
-D CMAKE_TOOLCHAIN_FILE="..\cmake\Arduino-Toolchain.cmake"
-D CMAKE_SH="CMAKE_SH-NOTFOUND"
--no-warn-unused-cli
..\examples
- ps: |
mingw32-make.exe 2>&1 3>&1
if ($LastExitCode -eq 0) { $host.SetShouldExit(0) }
artifacts:
- path: cmake
name: CMake-Framework
type: zip
deploy:
- provider: GitHub
description: 'ToDo'
artifact: CMake-Framework
auth_token:
secure: HdFffeP0STWdHzMbRZtWPESj7B88CtHWrh1/eHTpq6DWavB2GYrc3HbAVRieAXQW
draft: true
on:
appveyor_repo_tag: true
on_failure:
- ps: cat CMakeFiles/CMakeOutput.log