forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
75 lines (66 loc) · 2.53 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: 1.0.{build}
# speed up cloning
shallow_clone: true
clone_depth: 10
environment:
matrix:
- TARGET_ARCH: x86_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CYGWIN_PACKAGES: git,make,automake,libtool,mingw64-x86_64-gcc-g++,mingw64-x86_64-gcc-core,perl
CHOCO_PACKAGES: ant cygwin
CYGWIN_SETUP: cygwinsetup.exe # from choco
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- TARGET_ARCH: x86
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CYGWIN_PACKAGES: git,make,automake,libtool,mingw64-i686-gcc-g++,mingw64-i686-gcc-core,perl
CHOCO_PACKAGES: ant cygwin
CYGWIN_SETUP: cygwinsetup.exe # from choco
JAVA_HOME: C:\Program Files (x86)\Java\jdk1.8.0 # 32-bit
- TARGET_ARCH: aarch64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 # provides cygwin, mingw
CYGWIN_PACKAGES: make,automake,libtool
CHOCO_PACKAGES: ant
CYGWIN_SETUP: setup-x86_64.exe # from appveyor
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
install:
# Must prepend cygwin PATH to avoid "cygheap base mismatch" from Git\usr\bin\sed
- cmd: set PATH=C:\cygwin64;C:\cygwin64\bin;%JAVA_HOME%\bin;%PATH%;
- cmd: choco install -y -f -i %CHOCO_PACKAGES%
- cmd: '%CYGWIN_SETUP% --root C:\cygwin64 --local-package-dir C:\cygwin64\packages --quiet-mode --no-desktop --no-startmenu --upgrade-also --packages %CYGWIN_PACKAGES%'
# Setup msvc environment
for:
- # VS 2015: x64
matrix:
only:
- TARGET_ARCH: x86_64
before_build:
- cmd: set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64'
before_test:
- cmd: net start spooler
test_script:
- cmd: ant test
- cmd: ant test-platform
- # VS 2015: x86
matrix:
only:
- TARGET_ARCH: x86
before_build:
- cmd: set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86'
before_test:
- cmd: net start spooler
test_script:
- cmd: ant test
- cmd: ant test-platform
- # VS 2019: aarch64
matrix:
only:
- TARGET_ARCH: aarch64
before_build:
- cmd: set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- cmd: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64_arm64'
test_script:
- cmd: echo Skipping tests
build_script:
- cmd: ant -Dos.prefix=win32-%TARGET_ARCH% dist