-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
44 lines (38 loc) · 2.1 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
platform:
- x64
environment:
global:
STACK_ROOT: "c:\\sr"
matrix:
- TARGET: mingw
- TARGET: msvc
cache:
- "c:\\sr" # stack root, short paths == less problems
install:
- set SSL_CERT_FILE=C:\msys64\mingw64\ssl\cert.pem
- set SSL_CERT_DIR=C:\msys64\mingw64\ssl\certs
# Some conditional statements are splited to avoid "\Microsoft was unexpected at this time.” error.
# https://support.microsoft.com/ja-jp/help/2524009/error-running-command-shell-scripts-that-include-parentheses
- if [%TARGET%]==[mingw] set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
- if [%TARGET%]==[msvc] set PATH=C:\msys64\mingw64\bin;%PATH%
- if [%TARGET%]==[mingw] (
curl -omingw-w64-x86_64-mkl-dnn-0.16-1-x86_64.pkg.tar.xz -L https://github.com/msakai/mkl-dnn/releases/download/v0.16/mingw-w64-x86_64-mkl-dnn-0.16-1-x86_64.pkg.tar.xz &&
pacman -U --noconfirm mingw-w64-x86_64-mkl-dnn-0.16-1-x86_64.pkg.tar.xz &&
curl -omingw-w64-x86_64-menoh-1.1.1-1-x86_64.pkg.tar.xz -L https://github.com/pfnet-research/menoh/releases/download/v1.1.1/mingw-w64-x86_64-menoh-1.1.1-1-x86_64.pkg.tar.xz &&
pacman -U --noconfirm mingw-w64-x86_64-menoh-1.1.1-1-x86_64.pkg.tar.xz
) else (
curl -omkl-dnn-0.16-win64.7z -L --insecure https://github.com/msakai/mkl-dnn/releases/download/v0.16/mkl-dnn-0.16-win64.7z &&
7z x mkl-dnn-0.16-win64.7z &&
curl -omenoh_prebuild_win_v1.1.1.zip -L --insecure https://github.com/pfnet-research/menoh/releases/download/v1.1.1/menoh_prebuild_win_v1.1.1.zip &&
7z x menoh_prebuild_win_v1.1.1.zip
)
- if [%TARGET%]==[msvc] set PKG_CONFIG_PATH=c:\projects\menoh-haskell\menoh_prebuild_win_v1.1.1\share\pkgconfig;%PKG_CONFIG_PATH%
- if [%TARGET%]==[msvc] set PATH=c:\projects\menoh-haskell\menoh_prebuild_win_v1.1.1\bin;c:\projects\menoh-haskell\mkl-dnn-0.16-win64\bin;c:\projects\menoh-haskell\mkl-dnn-0.16-win64\lib;%PATH%
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-x86_64
- 7z x stack.zip stack.exe
- stack setup > nul
build_script:
- echo "" | stack --no-terminal build --test --no-run-tests
test_script:
- echo "" | stack --no-terminal test
- stack exec mnist_example