-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fb9e74
commit ea1d5de
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |