Skip to content

Commit

Permalink
Workflow to generate m1 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
tiphaineruy authored and ritchie46 committed Sep 20, 2021
1 parent 1fb9e74 commit ea1d5de
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/create-py-universal2-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create universal2 python release

on: [workflow_dispatch]

jobs:
build:
name: Create Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest"]
python-version: ["3.6"]
steps:
- uses: actions/checkout@v2
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-09-14
override: true
components: rustfmt, clippy
- name: Setup universal2 targets for Rust
run: |
rustup target add aarch64-apple-darwin
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Prepare maturin publish
shell: bash
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
cd py-polars
rustup override set nightly-2021-09-14
- uses: maturin publish
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
with:
maturin-version: 0.11.3
command: publish
args: -m py-polars/Cargo.toml --no-sdist --universal2 -o wheels -i python -u ritchie46

0 comments on commit ea1d5de

Please sign in to comment.