-
Notifications
You must be signed in to change notification settings - Fork 9
116 lines (109 loc) · 3.34 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Python Wheels
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
IROH_FORCE_STAGING_RELAYS: "1"
jobs:
manylinux2014:
runs-on: ${{ matrix.runner }}
container: ${{ matrix.container }}
strategy:
matrix:
name: [ubuntu-latest, ubuntu-arm-latest]
include:
- name: ubuntu-latest
python: 3.11
os: ubuntu-latest
release-os: manylinux2014
release-arch: x86_64
container: quay.io/pypa/manylinux2014_x86_64
runner: [ubuntu-latest]
- name: ubuntu-arm-latest
python: 3.11
os: ubuntu-latest
release-os: manylinux2014
release-arch: aarch64
container: quay.io/pypa/manylinux2014_aarch64
runner: [self-hosted, linux, ARM64]
steps:
- uses: actions/checkout@v3
- name: Install stable rust
run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
- name: Install maturin & uniffi-bindgen
run: |
/opt/python/cp311-cp311/bin/pip install -U maturin uniffi-bindgen
- name: Build wheel
run: |
source $HOME/.cargo/env
PATH=/opt/python/cp311-cp311/bin:$PATH
export PATH
maturin --version
maturin build --release --manylinux 2014
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.release-os }}-${{ matrix.release-arch }}
path: target/wheels/*.whl
osx:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
name: [macOS-latest, macOS-arm-latest]
include:
- name: macOS-latest
python: 3.11
os: macOS-latest
release-os: darwin
release-arch: x86_64
runner: [macOS-13]
- name: macOS-arm-latest
python: 3.11
os: macOS-latest
release-os: darwin
release-arch: aarch64
runner: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install maturin & uniffi-bindgen
run: |
pip install -U maturin uniffi-bindgen
- name: Build wheel
run: |
maturin --version
maturin build --release
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.release-os }}-${{ matrix.release-arch }}
path: target/wheels/*.whl
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install maturin & uniffi-bindgen
run: |
pip install -U maturin uniffi-bindgen
- name: Build wheel
run: |
maturin --version
maturin build --release
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: wheels-windows-x86_64
path: target/wheels/*.whl