Merge branch 'appveyor-python-64b'

This commit is contained in:
Thomas Bernard 2020-05-10 15:21:35 +02:00
commit 6212301e0a
1 changed files with 18 additions and 8 deletions

View File

@ -1,15 +1,22 @@
environment: environment:
APP_VERSION: '2.1' APP_VERSION: '2.1'
matrix: matrix:
- PYTHON_VER: C:\Python27\python - PYTHON_VER: C:\Python27
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
SETUP_COMPILER_FLAG: --compiler=mingw32 SETUP_COMPILER_FLAG: --compiler=mingw32
- PYTHON_VER: C:\Python35\python ARCH_BITS: 32
- PYTHON_VER: C:\Python35
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
SETUP_COMPILER_FLAG: SETUP_COMPILER_FLAG:
- PYTHON_VER: C:\Python37\python ARCH_BITS: 32
- PYTHON_VER: C:\Python37
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
SETUP_COMPILER_FLAG: SETUP_COMPILER_FLAG:
ARCH_BITS: 32
- PYTHON_VER: C:\Python37-x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
SETUP_COMPILER_FLAG:
ARCH_BITS: 64
version: '$(APP_VERSION).{build}' version: '$(APP_VERSION).{build}'
@ -17,21 +24,24 @@ version: '$(APP_VERSION).{build}'
image: Visual Studio 2017 image: Visual Studio 2017
install: install:
- set PATH=%PATH%;C:\msys64\mingw32\bin - set PATH=%PYTHON_VER%;%PYTHON_VER%\Scripts;%PATH%;C:\msys64\mingw%ARCH_BITS%\bin
# We need wheel installed to build wheels # We need wheel installed to build wheels
- "%PYTHON_VER%.exe -m pip install wheel" - "%PYTHON_VER%\\python.exe -m pip install wheel"
- echo %PATH%
- cc -v
build_script: build_script:
- cd miniupnpc - cd miniupnpc
- appveyor AddCompilationMessage "Building miniupnpc" - appveyor AddCompilationMessage "Building miniupnpc"
- mingw32-make -f Makefile.mingw - mingw32-make -f Makefile.mingw
- mingw32-make -f Makefile.mingw pythonmodule PYTHON=%PYTHON_VER% - appveyor AddCompilationMessage "Building python module"
- mingw32-make -f Makefile.mingw pythonmodule PYTHON=%PYTHON_VER%\python
after_build: after_build:
- 7z a -x!wingenminiupnpcstrings.exe ..\miniupnpc-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib - 7z a -x!wingenminiupnpcstrings.exe ..\miniupnpc_%ARCH_BITS%b-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib
artifacts: artifacts:
- path: miniupnpc-$(appveyor_build_version).zip - path: miniupnpc*-$(appveyor_build_version).zip
name: miniupnpc binaries name: miniupnpc binaries
- path: miniupnpc/dist/miniupnpc-*.whl - path: miniupnpc/dist/miniupnpc-*.whl
name: miniupnpc python wheel (self-contained) name: miniupnpc python wheel (self-contained)