mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-12-08 06:09:49 +00:00
Use Github Actions for Windows (#377)
This commit is contained in:
parent
891f2d8743
commit
cc3a8665d6
3 changed files with 79 additions and 1 deletions
70
.github/workflows/windows.yaml
vendored
Normal file
70
.github/workflows/windows.yaml
vendored
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
name: Build and test windows wheels
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- test
|
||||
pull_request:
|
||||
create:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Cythonize
|
||||
shell: bash
|
||||
run: |
|
||||
pip install -U Cython
|
||||
make cython
|
||||
#python setup.py sdist
|
||||
|
||||
- name: Python 3.6 (amd64)
|
||||
env:
|
||||
PYTHON: "py -3.6-64"
|
||||
shell: bash
|
||||
run: |
|
||||
ci/runtests.sh
|
||||
|
||||
- name: Python 3.6 (x86)
|
||||
env:
|
||||
PYTHON: "py -3.6-32"
|
||||
shell: bash
|
||||
run: |
|
||||
ci/runtests.sh
|
||||
|
||||
- name: Python 3.7 (amd64)
|
||||
env:
|
||||
PYTHON: "py -3.7-64"
|
||||
shell: bash
|
||||
run: |
|
||||
ci/runtests.sh
|
||||
|
||||
- name: Python 3.7 (x86)
|
||||
env:
|
||||
PYTHON: "py -3.7-32"
|
||||
shell: bash
|
||||
run: |
|
||||
ci/runtests.sh
|
||||
|
||||
- name: Python 3.8 (amd64)
|
||||
env:
|
||||
PYTHON: "py -3.8-64"
|
||||
shell: bash
|
||||
run: |
|
||||
ci/runtests.sh
|
||||
|
||||
- name: Python 3.8 (x86)
|
||||
env:
|
||||
PYTHON: "py -3.8-32"
|
||||
shell: bash
|
||||
run: |
|
||||
ci/runtests.sh
|
||||
|
||||
- name: Upload Wheels
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: win-wheels
|
||||
path: ./dist
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
%PYTHON%\python.exe setup.py build_ext -i
|
||||
%PYTHON%\python.exe setup.py install
|
||||
%PYTHON%\python.exe -c "import sys; print(hex(sys.maxsize))"
|
||||
%PYTHON%\python.exe -c "from msgpack import _packer, _unpacker"
|
||||
%PYTHON%\python.exe -c "from msgpack import _cmsgpack"
|
||||
%PYTHON%\python.exe setup.py bdist_wheel
|
||||
%PYTHON%\python.exe -m pytest -v test
|
||||
SET EL=%ERRORLEVEL%
|
||||
|
|
|
|||
8
ci/runtests.sh
Normal file
8
ci/runtests.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
${PYTHON} -VV
|
||||
${PYTHON} -m pip install setuptools wheel pytest
|
||||
${PYTHON} setup.py build_ext -if
|
||||
${PYTHON} -c "from msgpack import _cmsgpack"
|
||||
${PYTHON} setup.py bdist_wheel
|
||||
${PYTHON} -m pytest -v test
|
||||
Loading…
Add table
Add a link
Reference in a new issue