Skip to content

Commit

Permalink
Added Maturin github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
lordlou committed Sep 9, 2023
1 parent 7ee54b3 commit 2331952
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 13 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build-github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: build-github-actions
on: [push]
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels - x86_64
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist --sdist -m rust/Cargo.toml
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
target: universal2-apple-darwin
args: --release --out dist -m rust/Cargo.toml

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -m rust/Cargo.toml

linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, i686]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -m rust/Cargo.toml
13 changes: 0 additions & 13 deletions .github/workflows/learn-github-actions.yml

This file was deleted.

0 comments on commit 2331952

Please sign in to comment.