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

Commit 123b734

Browse files
committed
Updated 'AppVeyor' config to deploy versions to GitHub Releases.
Also enforced email notification only for failed builds. Secure token are still missing as they haven't been generated yet.
1 parent 58d129a commit 123b734

File tree

1 file changed

+34
-16
lines changed

1 file changed

+34
-16
lines changed

appveyor.yml

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,41 @@
11
version: '{build}'
22
image: Visual Studio 2017
3+
notifications:
4+
- provider: email
5+
on_build_success: false
36
environment:
47
matrix:
58
- ARDUINO_SDK_VERSION: 1.6.0
6-
- ARDUINO_SDK_VERSION: 1.8.5
9+
- ARDUINO_SDK_VERSION: 1.8.5
710
install:
8-
- ps: choco install make unzip
9-
- ps: $env:ARDUINO_SDK_FILE = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
10-
- ps: $env:ARDUINO_SDK_URI = "https://downloads.arduino.cc/$env:ARDUINO_SDK_FILE"
11-
- ps: wget "$env:ARDUINO_SDK_URI" -O "$env:ARDUINO_SDK_FILE"
12-
- ps: unzip "$env:ARDUINO_SDK_FILE" -d "arduino-sdk"
13-
- ps: $env:ARDUINO_SDK_PATH = "$pwd\arduino-sdk\arduino-$env:ARDUINO_SDK_VERSION"
14-
# FIXME: Windows path separators (\) need to be changed to "/" for cmake to properly handle it
15-
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
11+
- ps: cinst unzip
12+
- ps: $env:ARDUINO_SDK_FILE = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
13+
- ps: $env:ARDUINO_SDK_URI = "https://downloads.arduino.cc/$env:ARDUINO_SDK_FILE"
14+
- ps: wget "$env:ARDUINO_SDK_URI" -O "$env:ARDUINO_SDK_FILE"
15+
- ps: unzip "$env:ARDUINO_SDK_FILE" -d "arduino-sdk"
16+
- ps: $env:ARDUINO_SDK_PATH = "$pwd\arduino-sdk\arduino-$env:ARDUINO_SDK_VERSION"
17+
# FIXME: Windows path separators (\) need to be changed to "/" for cmake to properly handle it
18+
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
1619
build_script:
17-
- ps: mkdir build
18-
- ps: cd build
19-
- ps: echo "$env:ARDUINO_SDK_PATH"
20-
- ps: cmake -G "Unix Makefiles" -D ARDUINO_SDK_PATH="$env:ARDUINO_SDK_PATH" -D CMAKE_TOOLCHAIN_FILE="../cmake/Arduino-Toolchain.cmake" ..
21-
- cmd: make
22-
on_finish:
23-
- ps: cat CMakeFiles/CMakeOutput.log
20+
- ps: mkdir build
21+
- ps: cd build
22+
- ps: echo "$env:ARDUINO_SDK_PATH"
23+
- ps: cmake -G "Unix Makefiles" -D ARDUINO_SDK_PATH="$env:ARDUINO_SDK_PATH" -D CMAKE_TOOLCHAIN_FILE="../cmake/Arduino-Toolchain.cmake" ..
24+
- ps: make
25+
after_build:
26+
- 7z a arduino-cmake-ng.zip %APPVEYOR_BUILD_FOLDER%\cmake
27+
artifacts:
28+
- path: arduino-cmake-ng.zip
29+
name: Arduino-CMake-NG
30+
deploy:
31+
- provider: GitHub
32+
description: 'ToDo'
33+
artifact: arduino-cmake-ng.zip
34+
auth_token:
35+
secure:
36+
draft: true
37+
on:
38+
branch: master
39+
appveyor_repo_tag: true
40+
on_failure:
41+
- ps: cat CMakeFiles/CMakeOutput.log

0 commit comments

Comments
 (0)