2020-03-16 15:03:21 +00:00
|
|
|
name: Build for windows
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_wheels:
|
|
|
|
name: Build wheel on Windows ${{ matrix.config.arch }}
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- name: MSVC x64
|
|
|
|
vs-arch: amd64
|
|
|
|
py-architecture: x64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-10-07 09:56:06 +00:00
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
name: Install Python 3.9
|
|
|
|
with:
|
|
|
|
python-version: "3.9"
|
|
|
|
architecture: ${{ matrix.config.py-architecture }}
|
|
|
|
|
2020-03-16 15:03:21 +00:00
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
name: Install Python 3.8
|
|
|
|
with:
|
|
|
|
python-version: "3.8"
|
|
|
|
architecture: ${{ matrix.config.py-architecture }}
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
name: Install Python 3.7
|
|
|
|
with:
|
|
|
|
python-version: "3.7"
|
|
|
|
architecture: ${{ matrix.config.py-architecture }}
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
name: Install Python 3.6
|
|
|
|
with:
|
|
|
|
python-version: "3.6"
|
|
|
|
architecture: ${{ matrix.config.py-architecture }}
|
|
|
|
|
|
|
|
- name: Install cibuildwheel
|
|
|
|
run: |
|
2020-10-28 09:59:28 +00:00
|
|
|
python -m pip install cibuildwheel==1.6.3
|
2020-03-16 15:03:21 +00:00
|
|
|
|
|
|
|
- name: Checkout submodules
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
git submodule sync --recursive
|
|
|
|
git submodule update --init --force --recursive --depth=1
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install -r requirements-dev.txt
|
|
|
|
|
2020-10-07 09:56:06 +00:00
|
|
|
- name: Test for Python 3.9
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -no_logo -arch=${{ matrix.config.vs-arch }}
|
|
|
|
tox -e py39
|
|
|
|
|
2020-03-16 15:03:21 +00:00
|
|
|
- name: Test for Python 3.8
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -no_logo -arch=${{ matrix.config.vs-arch }}
|
|
|
|
tox -e py38
|
|
|
|
|
|
|
|
- name: Test for Python 3.7
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -no_logo -arch=${{ matrix.config.vs-arch }}
|
|
|
|
tox -e py37
|
|
|
|
|
|
|
|
- name: Test for Python 3.6
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -no_logo -arch=${{ matrix.config.vs-arch }}
|
|
|
|
tox -e py36
|
|
|
|
|
|
|
|
- name: Build wheel
|
|
|
|
if: contains(github.ref, 'tags/')
|
|
|
|
run: |
|
|
|
|
python -m cibuildwheel --output-dir wheelhouse
|
|
|
|
env:
|
2020-10-28 09:50:18 +00:00
|
|
|
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
|
2020-03-16 15:03:21 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: contains(github.ref, 'tags/')
|
|
|
|
with:
|
|
|
|
name: wheels
|
|
|
|
path: ./wheelhouse
|