-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (42 loc) · 1.18 KB
/
create-py-release-windows-macos.yaml
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
name: Create Python release windows macos
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'py-v*' # Push events to matching py-v*, i.e. py-v1.0, py-v20.15.10
jobs:
build:
name: Create Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "macos-latest", "windows-latest" ]
python-version: [ "3.7" ]
steps:
- uses: actions/checkout@v2
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install maturin==0.12.7
- name: Publish wheel
shell: bash
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3'
maturin publish \
--no-sdist \
--skip-existing \
-o wheels \
-i python \
--username yankun \