|
5 | 5 | pull_request: |
6 | 6 |
|
7 | 7 | jobs: |
| 8 | + sdist: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - uses: actions/checkout@v3 |
| 12 | + - uses: actions/setup-python@v4 |
| 13 | + with: |
| 14 | + python-version: '3.11' |
| 15 | + - uses: dtolnay/rust-toolchain@stable |
| 16 | + - uses: PyO3/maturin-action@v1 |
| 17 | + with: |
| 18 | + command: sdist |
| 19 | + - name: Upload wheels |
| 20 | + uses: actions/upload-artifact@v3 |
| 21 | + with: |
| 22 | + name: wheels |
| 23 | + path: target/wheels |
| 24 | + |
8 | 25 | linux: |
9 | 26 | runs-on: ubuntu-latest |
10 | 27 | strategy: |
11 | 28 | matrix: |
12 | | - python-version: ['3.7', '3.8', '3.9', '3.10'] |
| 29 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
13 | 30 | target: [x86_64, i686] |
14 | 31 | steps: |
15 | | - - uses: actions/checkout@v2 |
16 | | - - uses: actions/setup-python@v2 |
| 32 | + - uses: actions/checkout@v3 |
| 33 | + - uses: actions/setup-python@v4 |
17 | 34 | with: |
18 | 35 | python-version: ${{ matrix.python-version }} |
19 | | - - uses: actions-rs/toolchain@v1 |
20 | | - with: |
21 | | - profile: minimal |
22 | | - toolchain: stable |
23 | | - default: true |
24 | | - - uses: messense/maturin-action@v1 |
| 36 | + - uses: dtolnay/rust-toolchain@stable |
| 37 | + - uses: PyO3/maturin-action@v1 |
25 | 38 | with: |
26 | 39 | target: ${{ matrix.target }} |
27 | 40 | manylinux: auto |
28 | | - args: -i ${{ matrix.python-version }} --release -o dist |
| 41 | + args: -i ${{ matrix.python-version }} --release |
29 | 42 | - name: Upload wheels |
30 | | - uses: actions/upload-artifact@v2 |
| 43 | + uses: actions/upload-artifact@v3 |
31 | 44 | with: |
32 | 45 | name: wheels |
33 | | - path: dist |
| 46 | + path: target/wheels |
34 | 47 |
|
35 | 48 | windows: |
36 | 49 | runs-on: windows-latest |
37 | 50 | strategy: |
38 | 51 | matrix: |
39 | | - python-version: ['3.7', '3.8', '3.9', '3.10'] |
| 52 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
40 | 53 | target: [x64, x86] |
41 | 54 | steps: |
42 | | - - uses: actions/checkout@v2 |
43 | | - - uses: actions/setup-python@v2 |
| 55 | + - uses: actions/checkout@v3 |
| 56 | + - uses: actions/setup-python@v4 |
44 | 57 | with: |
45 | 58 | python-version: ${{ matrix.python-version }} |
46 | 59 | architecture: ${{ matrix.target }} |
47 | | - - uses: actions-rs/toolchain@v1 |
48 | | - with: |
49 | | - profile: minimal |
50 | | - toolchain: stable |
51 | | - default: true |
52 | | - - uses: messense/maturin-action@v1 |
| 60 | + - uses: dtolnay/rust-toolchain@stable |
| 61 | + - uses: PyO3/maturin-action@v1 |
53 | 62 | with: |
54 | 63 | target: ${{ matrix.target }} |
55 | 64 | manylinux: auto |
56 | | - args: -i ${{ matrix.python-version }} --release -o dist |
| 65 | + args: -i ${{ matrix.python-version }} --release |
57 | 66 | - name: Upload wheels |
58 | | - uses: actions/upload-artifact@v2 |
| 67 | + uses: actions/upload-artifact@v3 |
59 | 68 | with: |
60 | 69 | name: wheels |
61 | | - path: dist |
| 70 | + path: target/wheels |
62 | 71 |
|
63 | 72 | macos: |
64 | 73 | runs-on: macos-latest |
65 | 74 | strategy: |
66 | 75 | matrix: |
67 | | - python-version: ['3.7', '3.8', '3.9', '3.10'] |
| 76 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
68 | 77 | steps: |
69 | | - - uses: actions/checkout@v2 |
70 | | - - uses: actions/setup-python@v2 |
| 78 | + - uses: actions/checkout@v3 |
| 79 | + - uses: actions/setup-python@v4 |
71 | 80 | with: |
72 | 81 | python-version: ${{ matrix.python-version }} |
73 | | - - uses: actions-rs/toolchain@v1 |
74 | | - with: |
75 | | - profile: minimal |
76 | | - toolchain: stable |
77 | | - default: true |
78 | | - - uses: messense/maturin-action@v1 |
| 82 | + - uses: dtolnay/rust-toolchain@stable |
| 83 | + - uses: PyO3/maturin-action@v1 |
79 | 84 | with: |
80 | 85 | target: ${{ matrix.target }} |
81 | 86 | manylinux: auto |
82 | | - args: -i ${{ matrix.python-version }} --release -o dist --universal2 |
| 87 | + args: -i ${{ matrix.python-version }} --release --universal2 |
83 | 88 | - name: Upload wheels |
84 | | - uses: actions/upload-artifact@v2 |
| 89 | + uses: actions/upload-artifact@v3 |
85 | 90 | with: |
86 | 91 | name: wheels |
87 | | - path: dist |
| 92 | + path: target/wheels |
88 | 93 |
|
89 | 94 | release: |
90 | 95 | name: Release |
91 | 96 | runs-on: ubuntu-latest |
92 | 97 | if: "startsWith(github.ref, 'refs/tags/')" |
93 | | - needs: [ macos, windows, linux ] |
| 98 | + needs: [ sdist, macos, windows, linux ] |
94 | 99 | steps: |
95 | | - - uses: actions/download-artifact@v2 |
| 100 | + - uses: actions/download-artifact@v3 |
96 | 101 | with: |
97 | 102 | name: wheels |
98 | 103 | - name: Publish to PyPI |
|
0 commit comments