|
6 | 6 | - 'v*' # Trigger on version tags such as v1.0.0
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - # build_wheels: |
10 |
| - # name: Build wheels on ${{ matrix.os }} |
11 |
| - # runs-on: ${{ matrix.os }} |
12 |
| - # strategy: |
13 |
| - # matrix: |
14 |
| - # os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest] |
| 9 | + build_wheels: |
| 10 | + name: Build wheels on ${{ matrix.os }} |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest] |
15 | 15 |
|
16 |
| - # steps: |
17 |
| - # - uses: actions/checkout@v4 |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v4 |
18 | 18 |
|
19 |
| - # - name: Set up Python |
20 |
| - # uses: actions/setup-python@v5 |
21 |
| - # with: |
22 |
| - # python-version: 3.x |
| 19 | + - name: Set up Python |
| 20 | + uses: actions/setup-python@v5 |
| 21 | + with: |
| 22 | + python-version: 3.x |
23 | 23 |
|
24 |
| - # - name: Install build dependencies |
25 |
| - # run: | |
26 |
| - # python -m pip install --upgrade pip |
27 |
| - # pip install cibuildwheel==2.* |
| 24 | + - name: Install build dependencies |
| 25 | + run: | |
| 26 | + python -m pip install --upgrade pip |
| 27 | + pip install cibuildwheel==2.* |
28 | 28 |
|
29 |
| - # - name: Build wheels with cibuildwheel |
30 |
| - # env: |
31 |
| - # CIBW_TEST_COMMAND: python {package}/test_arraydeque.py |
32 |
| - # run: cibuildwheel --output-dir wheelhouse . |
| 29 | + - name: Build wheels with cibuildwheel |
| 30 | + env: |
| 31 | + CIBW_TEST_COMMAND: python {package}/test_arraydeque.py |
| 32 | + run: cibuildwheel --output-dir wheelhouse . |
33 | 33 |
|
34 |
| - # - name: Upload built wheels |
35 |
| - # uses: actions/upload-artifact@v4 |
36 |
| - # with: |
37 |
| - # name: wheels-${{ matrix.os }} |
38 |
| - # path: wheelhouse/*.whl |
| 34 | + - name: Upload built wheels |
| 35 | + uses: actions/upload-artifact@v4 |
| 36 | + with: |
| 37 | + name: wheels-${{ matrix.os }} |
| 38 | + path: wheelhouse/*.whl |
39 | 39 |
|
40 | 40 | publish:
|
41 | 41 | # Wait for all platforms to build, then publish wheels and a source distribution.
|
42 |
| - # needs: build_wheels |
| 42 | + needs: build_wheels |
43 | 43 | runs-on: ubuntu-latest
|
44 | 44 |
|
45 | 45 | steps:
|
46 | 46 | - uses: actions/checkout@v4
|
47 | 47 |
|
48 |
| - # - name: Download wheels (Ubuntu) |
49 |
| - # uses: actions/download-artifact@v4 |
50 |
| - # with: |
51 |
| - # name: wheels-ubuntu-latest |
52 |
| - # path: wheels |
| 48 | + - name: Download wheels (Ubuntu) |
| 49 | + uses: actions/download-artifact@v4 |
| 50 | + with: |
| 51 | + name: wheels-ubuntu-latest |
| 52 | + path: wheels |
53 | 53 |
|
54 |
| - # - name: Download wheels (macOS) |
55 |
| - # uses: actions/download-artifact@v4 |
56 |
| - # with: |
57 |
| - # name: wheels-macos-latest |
58 |
| - # path: wheels |
| 54 | + - name: Download wheels (macOS) |
| 55 | + uses: actions/download-artifact@v4 |
| 56 | + with: |
| 57 | + name: wheels-macos-latest |
| 58 | + path: wheels |
59 | 59 |
|
60 |
| - # - name: Download wheels (Windows) |
61 |
| - # uses: actions/download-artifact@v4 |
62 |
| - # with: |
63 |
| - # name: wheels-windows-latest |
64 |
| - # path: wheels |
| 60 | + - name: Download wheels (Windows) |
| 61 | + uses: actions/download-artifact@v4 |
| 62 | + with: |
| 63 | + name: wheels-windows-latest |
| 64 | + path: wheels |
65 | 65 |
|
66 | 66 | - name: Build source distribution
|
67 | 67 | run: |
|
|
70 | 70 |
|
71 | 71 | - name: Publish wheels and source distribution to PyPI
|
72 | 72 | run: |
|
73 |
| - twine upload sdist/*.tar.gz |
74 |
| - # twine upload wheels/*.whl sdist/*.tar.gz |
| 73 | + twine upload wheels/*.whl sdist/*.tar.gz |
75 | 74 | env:
|
76 | 75 | TWINE_USERNAME: __token__
|
77 | 76 | TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
0 commit comments