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

Commit 715bec7

Browse files
committed
Updated 'AppVeyor' to correctly use the 'MinGW' generator.
Set 'Path' env variable to include AppVeyor's 'MinGW' install dir.
1 parent 6ffafd5 commit 715bec7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

appveyor.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
version: '{build}'
22
image: Visual Studio 2017
33
environment:
4+
MINGW_PATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
45
matrix:
5-
- ARDUINO_SDK_VERSION: 1.6.13
6+
# - ARDUINO_SDK_VERSION: 1.6.13
67
- ARDUINO_SDK_VERSION: 1.8.6
78
install:
8-
- ps: cinst make unzip
9+
- ps: cinst unzip
910
- ps: $env:ARDUINO_SDK_FILE = "arduino-$env:ARDUINO_SDK_VERSION-windows.zip"
1011
- ps: $env:ARDUINO_SDK_URI = "https://downloads.arduino.cc/$env:ARDUINO_SDK_FILE"
1112
- ps: wget "$env:ARDUINO_SDK_URI" -O "$env:ARDUINO_SDK_FILE"
1213
- ps: unzip "$env:ARDUINO_SDK_FILE" -d "arduino-sdk"
1314
- ps: $env:ARDUINO_SDK_PATH = "$pwd\arduino-sdk\arduino-$env:ARDUINO_SDK_VERSION"
1415
# FIXME: Windows path separators (\) need to be changed to "/" for cmake to properly handle it
1516
- ps: $env:ARDUINO_SDK_PATH = ($env:ARDUINO_SDK_PATH -replace "\\","/")
17+
before_build:
18+
- ps: Copy-Item -Path $env:MINGW_PATH\mingw32-make.exe -Destination $env:MINGW_PATH\make.exe
1619
build_script:
20+
# Add the MinGW Path to the system PATH temporarily for this session
21+
- ps: $env:Path += ";$env:MINGW_PATH"
1722
- ps: mkdir build
1823
- ps: cd build
1924
- ps: echo "$env:ARDUINO_SDK_PATH"
2025
- ps: >-
21-
cmake -G "Unix Makefiles"
22-
-DCMAKE_TOOLCHAIN_FILE="..\cmake\Arduino-Toolchain.cmake"
23-
-DCMAKE_SH="CMAKE_SH-NOTFOUND"
26+
cmake -G "MinGW Makefiles"
27+
-D CMAKE_TOOLCHAIN_FILE="..\cmake\Arduino-Toolchain.cmake"
28+
-D CMAKE_SH="CMAKE_SH-NOTFOUND"
29+
--no-warn-unused-cli
2430
..\examples
25-
- ps: make
31+
- ps: make.exe
2632
after_build:
2733
- 7z a arduino-cmake-ng.zip %APPVEYOR_BUILD_FOLDER%\cmake
2834
artifacts:

0 commit comments

Comments
 (0)