-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (56 loc) · 1.89 KB
/
wheels.yml
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
name: build-wheels
on:
workflow_call
jobs:
build_wheels:
name: Wheel on ${{ matrix.os }} for ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-13, macos-14]
os: [ubuntu-latest]
python_version: ["cp39-*", "cp310-*", "cp311-*", "cp312-*"]
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: >
curl https://sh.rustup.rs -sSf | sh -s -- -y && yum install -y openssl-devel zlib-devel
CIBW_ARCHS_LINUX: "auto64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_SKIP: "pp* *-win32 *-musllinux*"
CIBW_BUILD: ${{ matrix.python_version }}
#CIBW_TEST_REQUIRES: pytest hypothesis==6.72.4
#CIBW_TEST_COMMAND: "pytest {project}/snapatac2-python/tests"
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
- uses: ./.github/actions/setup-rust
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.20.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse python
- uses: actions/upload-artifact@v4
with:
name: precellar-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
make_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
- name: Install maturin
run: pip install maturin
- name: Build sdist
run: maturin sdist
working-directory: python
- uses: actions/upload-artifact@v4
with:
name: precellar-sdist
path: python/target/wheels/*.tar.gz