|
1 |
| -name: Build and Publish to PyPI |
| 1 | +name: Python Wheel |
2 | 2 | on:
|
3 | 3 | push:
|
| 4 | + branches: |
| 5 | + - v6 |
4 | 6 | tags:
|
5 | 7 | - v[0-9]+.*
|
6 | 8 | - test-release.*
|
| 9 | + workflow_dispatch: |
| 10 | + pull_request: |
| 11 | + merge_group: |
7 | 12 |
|
8 | 13 | jobs:
|
9 | 14 | windows-build:
|
|
15 | 20 | - uses: actions/checkout@v3
|
16 | 21 | - name: Install Rust stable
|
17 | 22 | uses: dtolnay/rust-toolchain@stable
|
18 |
| - - uses: actions/setup-python@v4 |
| 23 | + - uses: actions/setup-python@v5 |
19 | 24 | with:
|
20 | 25 | python-version: ${{ matrix.pyversion }}
|
21 | 26 | architecture: x64
|
@@ -45,26 +50,32 @@ jobs:
|
45 | 50 | macos-build:
|
46 | 51 | strategy:
|
47 | 52 | matrix:
|
48 |
| - pyversion: ["3.11"] |
| 53 | + include: |
| 54 | + - pyversion: "3.11" |
| 55 | + arch: "x86_64" |
| 56 | + abbr-arch: x64 |
| 57 | + - pyversion: "3.11" |
| 58 | + arch: "aarch64" |
| 59 | + abbr-arch: arm64 |
49 | 60 | runs-on: "macos-latest"
|
50 | 61 | steps:
|
51 | 62 | - uses: actions/checkout@v3
|
52 | 63 | - name: Install Rust stable
|
53 | 64 | uses: dtolnay/rust-toolchain@stable
|
54 |
| - - uses: actions/setup-python@v4 |
| 65 | + - uses: actions/setup-python@v5 |
55 | 66 | with:
|
56 | 67 | python-version: ${{ matrix.pyversion }}
|
57 |
| - architecture: x64 |
| 68 | + architecture: ${{ matrix.abbr-arch }} |
58 | 69 | - name: Build Wheel (PyO3 Binding)
|
59 | 70 | uses: messense/maturin-action@v1
|
60 | 71 | with:
|
61 |
| - target: x86_64 |
| 72 | + target: ${{ matrix.arch }} |
62 | 73 | command: build
|
63 | 74 | args: --release --strip -F python --bindings pyo3 --interpreter python --manifest-path Cargo.toml --out dist-pyo3
|
64 | 75 | - name: Build Wheel (Bin Binding)
|
65 | 76 | uses: messense/maturin-action@v1
|
66 | 77 | with:
|
67 |
| - target: x86_64 |
| 78 | + target: ${{ matrix.arch }} |
68 | 79 | command: build
|
69 | 80 | args: --release --strip -F binary --bindings bin --interpreter python --manifest-path Cargo.toml --out dist-bin
|
70 | 81 | - name: Merge Wheels
|
|
90 | 101 | # with:
|
91 | 102 | # toolchain: stable
|
92 | 103 | # override: true
|
93 |
| - # - uses: actions/setup-python@v4 |
| 104 | + # - uses: actions/setup-python@v5 |
94 | 105 | # with:
|
95 | 106 | # python-version: ${{ matrix.pyversion }}
|
96 | 107 | # architecture: x64
|
|
0 commit comments