2019-11-29 15:00:31 +00:00
|
|
|
name: Manylinux wheels
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
create:
|
|
|
|
schedule:
|
|
|
|
- cron: '23 1 * * *'
|
|
|
|
|
|
|
|
env:
|
|
|
|
KIVY_SPLIT_EXAMPLES: 1
|
|
|
|
SERVER_IP: '159.203.106.198'
|
|
|
|
DOCKER_IMAGE: 'quay.io/pypa/manylinux2010_x86_64'
|
|
|
|
|
|
|
|
jobs:
|
2020-01-03 22:45:55 +00:00
|
|
|
manylinux_wheel_create:
|
2019-11-29 15:00:31 +00:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
if: github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build wheel]') || contains(github.event.head_commit.message, '[build wheel linux]') || contains(github.event.pull_request.title, '[build wheel]') || contains(github.event.pull_request.title, '[build wheel linux]')
|
|
|
|
steps:
|
2020-05-02 16:53:36 +00:00
|
|
|
- uses: actions/checkout@v2
|
2019-11-29 15:00:31 +00:00
|
|
|
- name: Set up Python 3.x
|
2020-05-02 16:53:36 +00:00
|
|
|
uses: actions/setup-python@v2
|
2019-11-29 15:00:31 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2020-09-14 20:17:19 +00:00
|
|
|
- name: Generate version metadata
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
update_version_metadata
|
2019-11-29 15:00:31 +00:00
|
|
|
- name: Make wheels
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
generate_manylinux2010_wheels $DOCKER_IMAGE
|
2020-01-03 22:45:55 +00:00
|
|
|
- name: Upload wheels as artifact
|
2020-04-29 04:05:32 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-01-03 22:45:55 +00:00
|
|
|
with:
|
|
|
|
name: manylinux_wheels
|
|
|
|
path: dist
|
|
|
|
|
|
|
|
manylinux_wheel_upload_test:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
needs: manylinux_wheel_create
|
|
|
|
env:
|
|
|
|
DISPLAY: ':99.0'
|
|
|
|
steps:
|
2020-05-02 16:53:36 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-01-03 22:45:55 +00:00
|
|
|
- name: Set up Python 3.x
|
2020-05-02 16:53:36 +00:00
|
|
|
uses: actions/setup-python@v2
|
2020-01-03 22:45:55 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2020-04-29 04:05:32 +00:00
|
|
|
- uses: actions/download-artifact@v2
|
2020-01-03 22:45:55 +00:00
|
|
|
with:
|
|
|
|
name: manylinux_wheels
|
2020-04-29 04:05:32 +00:00
|
|
|
path: dist
|
2019-11-29 15:00:31 +00:00
|
|
|
- name: Rename wheels
|
|
|
|
if: github.event.ref_type != 'tag'
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
rename_wheels
|
|
|
|
- name: Upload wheels to server
|
|
|
|
if: github.event_name != 'pull_request'
|
|
|
|
env:
|
|
|
|
UBUNTU_UPLOAD_KEY: ${{ secrets.UBUNTU_UPLOAD_KEY }}
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
upload_file_to_server "$SERVER_IP" "linux/kivy/"
|
|
|
|
- name: Upload to GitHub Release
|
|
|
|
uses: softprops/action-gh-release@78c309ef59fdb9557cd6574f2e0be552936ed728
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
env:
|
2019-12-30 19:07:48 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.github_release }}
|
2019-11-29 15:00:31 +00:00
|
|
|
with:
|
|
|
|
files: dist/*
|
|
|
|
draft: true
|
2020-01-03 22:45:55 +00:00
|
|
|
- name: Publish to PyPI
|
|
|
|
if: github.event_name == 'create' && github.event.ref_type == 'tag'
|
|
|
|
env:
|
|
|
|
TWINE_USERNAME: "__token__"
|
|
|
|
TWINE_PASSWORD: ${{ secrets.pypi_password }}
|
|
|
|
run: |
|
2020-04-29 05:32:49 +00:00
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
upload_artifacts_to_pypi
|
2020-01-03 22:45:55 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
install_kivy_test_run_apt_deps
|
|
|
|
install_kivy_test_wheel_run_pip_deps
|
|
|
|
- name: Setup env
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
prepare_env_for_unittest
|
|
|
|
- name: Install Kivy
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
install_kivy_manylinux_wheel
|
|
|
|
- name: Test Kivy
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
test_kivy_install
|
2019-12-28 05:22:00 +00:00
|
|
|
|
|
|
|
sdist_test:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
env:
|
|
|
|
DISPLAY: ':99.0'
|
|
|
|
KIVY_SPLIT_EXAMPLES: 0
|
|
|
|
steps:
|
2020-05-02 16:53:36 +00:00
|
|
|
- uses: actions/checkout@v2
|
2019-12-28 05:22:00 +00:00
|
|
|
- name: Set up Python 3.x
|
2020-05-02 16:53:36 +00:00
|
|
|
uses: actions/setup-python@v2
|
2019-12-28 05:22:00 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
|
|
|
- name: Generate sdist
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
generate_sdist
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
install_kivy_test_run_apt_deps
|
|
|
|
install_kivy_test_wheel_run_pip_deps
|
|
|
|
- name: Setup env
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
prepare_env_for_unittest
|
|
|
|
- name: Install Kivy
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
install_kivy_sdist
|
|
|
|
- name: Test Kivy
|
|
|
|
run: |
|
|
|
|
source .ci/ubuntu_ci.sh
|
|
|
|
test_kivy_install
|