Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
29ad433
merge ci workflow files
kyamagu Aug 31, 2021
6896604
Fix windows arch
kyamagu Aug 31, 2021
113c3c4
Change build caller
kyamagu Aug 31, 2021
a61ad74
Use unspecified python in build
kyamagu Aug 31, 2021
7bcdc15
fix py2 compatibility on mac
kyamagu Aug 31, 2021
ce3ba27
Use alias to force python2 in mac
kyamagu Aug 31, 2021
0c255ba
Add patch to macos build
kyamagu Aug 31, 2021
e4d31d9
add icu patch file
kyamagu Aug 31, 2021
f1f756f
Update windows PATH
kyamagu Aug 31, 2021
3fc47b5
Use absolute path
kyamagu Aug 31, 2021
4e95f51
use pwd to set path
kyamagu Aug 31, 2021
e754795
update windows path
kyamagu Aug 31, 2021
c674f5a
update windows path
kyamagu Aug 31, 2021
e3bc9b1
Move path setup to script
kyamagu Aug 31, 2021
d94c91a
add pwd to path
kyamagu Aug 31, 2021
aa2de42
add expat-devel to linux dependency
kyamagu Aug 31, 2021
53dab4f
use manylinux2014
kyamagu Aug 31, 2021
b6fe0a6
fix arch flag
kyamagu Aug 31, 2021
cebfec4
remove epel flag from yum
kyamagu Aug 31, 2021
50488a6
Add ninja-build dependency
kyamagu Aug 31, 2021
ebd63f0
fix yum install command
kyamagu Aug 31, 2021
65b9818
add epel on aarch64
kyamagu Aug 31, 2021
e4727ce
add ninja alias
kyamagu Aug 31, 2021
222910c
fix yum install command
kyamagu Aug 31, 2021
1e6f8a7
apply py2 patch in all os
kyamagu Aug 31, 2021
50ae71c
update patch
kyamagu Aug 31, 2021
3065f73
update docs
kyamagu Aug 31, 2021
2c4af74
patch libjpeg-turbo build on arm64
kyamagu Aug 31, 2021
75511d7
apply patch to fix gn config for libjpeg-turbo
kyamagu Sep 1, 2021
09cc32b
add missing checkout
kyamagu Sep 1, 2021
bbbceab
pin pillow version
kyamagu Sep 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 0 additions & 189 deletions .github/workflows/build.yml

This file was deleted.

103 changes: 103 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types: [published]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }} (${{ matrix.arch }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
arch: [auto64]
include:
- os: ubuntu-20.04
arch: aarch64
- os: macos-10.15
arch: arm64

steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Set up QEMU
if: runner.os == 'Linux' && matrix.arch != 'auto64'
uses: docker/setup-qemu-action@v1
with:
platforms: arm64

- name: Build wheels
uses: pypa/cibuildwheel@v2.1.1
env:
CIBW_BUILD: cp37-* cp38-* cp39-*
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_BEFORE_ALL: bash scripts/build_${{ runner.os }}.sh
CIBW_BEFORE_BUILD: pip install pybind11 numpy
CIBW_TEST_REQUIRES: pytest pillow==8.3.1 glfw
CIBW_TEST_REQUIRES_MACOS: pytest pillow pyopengl pyopengl-accelerate
CIBW_TEST_COMMAND: python -m pytest {project}/tests
CIBW_TEST_COMMAND_LINUX: xvfb-run -s "-screen 0 640x480x24" python -m pytest {project}/tests
CIBW_TEST_SKIP: "*-macosx_arm64"

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_docs:
name: Build docs
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- name: Build docs
run: |
python -m pip install -f dist skia-python
python -m pip install sphinx sphinx-rtd-theme
python setup.py build_sphinx

- name: Deploy docs
if: github.event_name == 'release' && github.event.action == 'published'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html

publish:
name: Upload packages to PyPI
needs: [build_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
Loading