Skip to content

Commit 579015c

Browse files
committed
Bring back wheels
1 parent 4c6ae9b commit 579015c

File tree

1 file changed

+42
-43
lines changed

1 file changed

+42
-43
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,62 +6,62 @@ on:
66
- 'v*' # Trigger on version tags such as v1.0.0
77

88
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]
1515

16-
# steps:
17-
# - uses: actions/checkout@v4
16+
steps:
17+
- uses: actions/checkout@v4
1818

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
2323

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.*
2828
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 .
3333

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
3939

4040
publish:
4141
# Wait for all platforms to build, then publish wheels and a source distribution.
42-
# needs: build_wheels
42+
needs: build_wheels
4343
runs-on: ubuntu-latest
4444

4545
steps:
4646
- uses: actions/checkout@v4
4747

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
5353

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
5959

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
6565

6666
- name: Build source distribution
6767
run: |
@@ -70,8 +70,7 @@ jobs:
7070
7171
- name: Publish wheels and source distribution to PyPI
7272
run: |
73-
twine upload sdist/*.tar.gz
74-
# twine upload wheels/*.whl sdist/*.tar.gz
73+
twine upload wheels/*.whl sdist/*.tar.gz
7574
env:
7675
TWINE_USERNAME: __token__
7776
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)