forked from miniupnp/miniupnp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
55 lines (49 loc) · 1.73 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
environment:
APP_VERSION: '2.2'
matrix:
- PYTHON_VER: C:\Python27
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
SETUP_COMPILER_FLAG: --compiler=mingw32
ARCH_BITS: 32
- PYTHON_VER: C:\Python35
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
SETUP_COMPILER_FLAG:
ARCH_BITS: 32
- PYTHON_VER: C:\Python37
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
SETUP_COMPILER_FLAG:
ARCH_BITS: 32
- PYTHON_VER: C:\Python37-x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
SETUP_COMPILER_FLAG:
ARCH_BITS: 64
- PYTHON_VER: C:\Python39
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
SETUP_COMPILER_FLAG:
ARCH_BITS: 32
- PYTHON_VER: C:\Python39-x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
SETUP_COMPILER_FLAG:
ARCH_BITS: 64
version: '$(APP_VERSION).{build}'
install:
- set PATH=%PYTHON_VER%;%PYTHON_VER%\Scripts;%PATH%;C:\msys64\mingw%ARCH_BITS%\bin
# We need wheel installed to build wheels
- "%PYTHON_VER%\\python.exe -m pip install wheel"
- echo %PATH%
- cc -v
build_script:
- cd miniupnpc
- appveyor AddCompilationMessage "Building miniupnpc"
- mingw32-make -f Makefile.mingw
- appveyor AddCompilationMessage "Building python module"
- mingw32-make -f Makefile.mingw pythonmodule PYTHON=%PYTHON_VER%\python
after_build:
- 7z a -x!wingenminiupnpcstrings.exe ..\miniupnpc_%ARCH_BITS%b-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib
artifacts:
- path: miniupnpc*-$(appveyor_build_version).zip
name: miniupnpc binaries
- path: miniupnpc/dist/miniupnpc-*.whl
name: miniupnpc python wheel (self-contained)
- path: miniupnpc/dist/miniupnpc-*.egg
name: miniupnpc python egg (self-contained)