forked from Blockstream/lwk
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.57 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
on:
push:
branches:
- master
pull_request: {}
name: Build python wheels on mac and windows
jobs:
osx-wheels:
strategy:
matrix:
os: ["macos-13", "macos-14"] # 13 -> x86_64, 14 -> arm64 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: "clippy,rust-src,rustfmt" # required by maturin build
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python3 -m pip install maturin
- run: python3 -m pip install uniffi-bindgen==0.28.0 # must be the same version as the dep in lwk_bindings/Cargo.toml
- run: maturin build --release -m lwk_bindings/Cargo.toml -b uniffi
- uses: actions/upload-artifact@v4
with:
name: osx-wheel-${{ matrix.os }}
path: target/wheels
windows-wheels:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: "clippy,rust-src,rustfmt" # required by maturin build
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python3 -m pip install maturin
- run: python3 -m pip install uniffi-bindgen==0.28.0 # must be the same version as the dep in lwk_bindings/Cargo.toml
- run: maturin build --release -m lwk_bindings/Cargo.toml -b uniffi
- uses: actions/upload-artifact@v4
with:
name: windows-wheels
path: target/wheels