-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.92 KB
/
create-py-release-windows-macos.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Create Python release windows macos
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# - 'fixed2float-v*' # Push events to matching fixed2float-v*, i.e. fixed2float-v1.0, fixed2float-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 latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-01-01
override: true
components: rustfmt, clippy
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install maturin==0.12.1
- name: Publish wheel
shell: bash
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_FIXED2FLOAT_TOKEN }}
run: |
rustup override set nightly-2022-01-01
# export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3'
rm py-fixed2float/README.md
cp README.md py-fixed2float/README.md
cd py-fixed2float
maturin publish \
--no-sdist \
--skip-existing \
-o wheels \
-i python \
--username __token__ \
build_manylinux:
name: Create Release manylinux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish wheel
uses: docker://konstin2/maturin:latest
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_FIXED2FLOAT_TOKEN }}
with:
entrypoint: /bin/bash
args: .github/deploy_manylinux.sh