-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (67 loc) · 2.08 KB
/
dracopy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: DracoPy
on:
workflow_dispatch:
inputs:
dracopyVersion:
description: "DracoPy version"
required: true
default: "1.4.0"
numpyVersion:
description: "numpy version"
required: true
default: "2.0"
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CIBW_BUILD: "cp310-* cp311-*"
DRACOPY_VERSION: ${{ inputs.dracopyVersion }}
NUMPY_VERSION: ${{ inputs.numpyVersion }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Download DracoPy
run: |
git clone https://github.com/seung-lab/DracoPy \
--branch "${DRACOPY_VERSION}" --single-branch
- name: Build wheels
# uses: pypa/[email protected]
# to supply options, put them in 'env', like:
env:
CIBW_BEFORE_BUILD: git submodule init && git submodule update && pip install cython numpy==${{ inputs.numpyVersion }} scikit-build
CPPFLAGS: -I/usr/local/opt/zlib/include
LDFLAGS: -L/usr/local/opt/zlib/lib
CIBW_SKIP: "*-musllinux*"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "x86_64"
CIBW_ARCHS_WINDOWS: "AMD64"
run: |
cd DracoPy
python -m pip install cibuildwheel==2.16.5
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
publish:
name: Publish wheels to pypi.scm.io
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- name: Get wheels
uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: Publish to pypy.scm.io
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_SCM_USERNAME }}
password: ${{ secrets.PYPI_SCM_PASSWORD }}
repository-url: https://pypi.scm.io/simple/
skip-existing: true