Skip to content

Commit

Permalink
add work flows
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Oct 2, 2024
1 parent 786094e commit 3cb2d1f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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
- name: Build release
run: |
cargo build --release
mv ../target/release/libcptv_rs_python_bindings.so ./examples/cptv_rs_python_bindings.so
- name: Install pypa/build
run: >-
python3 -m
pip install
build maturin
--user
- name: Build a binary wheel and a source tarball
run: maturin publish

0 comments on commit 3cb2d1f

Please sign in to comment.