-
Notifications
You must be signed in to change notification settings - Fork 3
93 lines (73 loc) · 2.01 KB
/
build.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
name: Rust Build with Maturin
on: [push, pull_request]
jobs:
build-linux:
name: Build Rust Project on Linux
runs-on: ubuntu-latest
container:
image: ghcr.io/pyo3/maturin
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Build with Maturin
run: |
yum update -y
yum install -y openssl openssl-devel
rustup default stable
maturin build --release --features py --out dist
- uses: actions/upload-artifact@v2
with:
name: wheels-linux
path: dist/*
build-macos-arm:
name: Build Rust Project on macOS Arm
runs-on: macos-14
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
- name: Install Maturin
run: |
python -m pip install maturin
- name: Build with Maturin
run: |
maturin build --release --features py --out dist
- uses: actions/upload-artifact@v2
with:
name: wheels-macos-arm
path: dist/*
build-macos-x86:
name: Build Rust Project on macOS x86
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
- name: Install Maturin
run: |
python -m pip install maturin
- name: Build with Maturin
run: |
maturin build --release --features py --out dist
- uses: actions/upload-artifact@v2
with:
name: wheels-macos-x86
path: dist/*