pyjnius/.github/workflows/create.yml

91 lines
2.2 KiB
YAML
Raw Normal View History

on: create
name: Continiuous Delivery
jobs:
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 }}
steps:
- uses: actions/checkout@master
- 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 }}
- name: build sdist
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.8' && matrix.architecture == 'x64'
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
- name: build wheel
2019-11-24 14:26:17 +00:00
if: matrix.os != 'windows-latest'
run: |
2019-11-24 14:26:17 +00:00
pip install -U --timeout=120 -U setuptools wheel
python setup.py bdist_wheel
- 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 }}