-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.01 KB
/
release.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
name: Classifier Release
run-name: Build classifier
on: [push]
jobs:
pypi-build:
name: Build distribution 📦
runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
architecture: 'x64'
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.77.1
override: true
- name: Display Rust and Cargo version
run: |
rustc --version
cargo --version
- run: cd python-bindings
- name: Build release
run: |
cargo build --release
- name: Install pypa/build
run: >-
python3 -m
pip install
build maturin
--user
- name: Build a binary wheel and a source tarball
run: maturin publish