2019-09-17 13:08:24 +00:00
|
|
|
on: create
|
|
|
|
name: Continiuous Delivery
|
|
|
|
jobs:
|
2019-11-24 13:53:00 +00:00
|
|
|
PrepareRelease:
|
|
|
|
name: prepare release
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python:
|
|
|
|
- '2.7'
|
|
|
|
- '3.6'
|
|
|
|
- '3.7'
|
|
|
|
- '3.8'
|
|
|
|
java:
|
|
|
|
# - '8'
|
|
|
|
# - '9'
|
|
|
|
# - '10'
|
|
|
|
# - '11'
|
|
|
|
- '12'
|
|
|
|
os:
|
|
|
|
- 'ubuntu-latest'
|
|
|
|
- 'windows-latest'
|
|
|
|
- 'macOs-latest'
|
|
|
|
architecture:
|
|
|
|
- 'x64'
|
|
|
|
- 'x86'
|
|
|
|
|
|
|
|
# exclude problematic combinations
|
|
|
|
exclude:
|
|
|
|
- os: windows-latest
|
|
|
|
python: '3.8'
|
|
|
|
- os: windows-latest
|
|
|
|
python: '2.7'
|
|
|
|
- os: macOs-latest
|
|
|
|
architecture: 'x86'
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
2019-09-17 13:08:24 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
2019-11-24 19:26:38 +00:00
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python }}
|
|
|
|
|
|
|
|
- name: Setup java
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
architecture: ${{ matrix.architecture }}
|
|
|
|
|
2019-11-24 13:53:00 +00:00
|
|
|
- name: build sdist
|
|
|
|
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.8' && matrix.architecture == 'x64'
|
2019-09-17 13:08:24 +00:00
|
|
|
run: |
|
|
|
|
pip install -U setuptools
|
|
|
|
python setup.py sdist
|
|
|
|
|
2019-11-24 14:26:17 +00:00
|
|
|
- name: build-wheel-windows
|
|
|
|
if: matrix.os == 'windows-latest'
|
|
|
|
run: |
|
|
|
|
"%VS140COMNTOOLS%../../VC/vcvarsall.bat"
|
|
|
|
echo "$INCLUDE"
|
|
|
|
set INCLUDE "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt"
|
|
|
|
pip install --timeout=120 -U setuptools wheel
|
|
|
|
python setup.py bdist_wheel
|
|
|
|
|
2019-11-24 13:53:00 +00:00
|
|
|
- name: build wheel
|
2019-11-24 14:26:17 +00:00
|
|
|
if: matrix.os != 'windows-latest'
|
2019-11-24 13:53:00 +00:00
|
|
|
run: |
|
2019-11-24 14:26:17 +00:00
|
|
|
pip install -U --timeout=120 -U setuptools wheel
|
|
|
|
python setup.py bdist_wheel
|
2019-11-24 13:53:00 +00:00
|
|
|
|
|
|
|
- name: upload wheel
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist
|
|
|
|
|
|
|
|
# Release:
|
|
|
|
# - name: release
|
|
|
|
# runs-on: 'ubuntu-latest'
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/download-artifacts@master
|
|
|
|
# with:
|
|
|
|
# name: dist
|
|
|
|
# path: dist
|
|
|
|
|
|
|
|
# - name: create release
|
|
|
|
# run: .github/actions/scripts/release.sh
|
|
|
|
# env:
|
|
|
|
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
|
|
|
# GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_OAUTH_TOKEN }}
|