Skip to content

Commit ae75217

Browse files
committed
single platform for now
1 parent 7be65e3 commit ae75217

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed

.github/workflows/release_pypi.yaml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
build-x86_64:
8+
build:
99
runs-on: ubuntu-latest
1010
container:
1111
image: quay.io/pypa/manylinux_2_34_x86_64
@@ -36,63 +36,25 @@ jobs:
3636
- name: Upload built wheels
3737
uses: actions/upload-artifact@v4
3838
with:
39-
name: built-wheels-x86_64
39+
name: built-wheels
4040
path: wheelhouse/*.whl
4141
retention-days: 2
4242

43-
build-aarch64:
44-
runs-on: ubuntu-latest
45-
container:
46-
image: quay.io/pypa/manylinux_2_34_aarch64
47-
48-
env:
49-
PYTHON: /opt/python/cp310-cp310/bin/python
5043

51-
steps:
52-
- uses: actions/checkout@v2
53-
54-
- name: Install dependencies
55-
run: |
56-
$PYTHON -m pip install --upgrade pip
57-
$PYTHON -m pip install -r requirements.txt
58-
$PYTHON -m pip install -r requirements_dev.txt
59-
60-
- name: Build package (aarch64)
61-
run: |
62-
$PYTHON setup.py build_ext --inplace
63-
$PYTHON -m build --no-isolation
64-
65-
- name: Repair wheels (aarch64)
66-
run: |
67-
$PYTHON -m pip install auditwheel
68-
auditwheel repair dist/pointsnobal*.whl -w wheelhouse/
69-
70-
- name: Upload aarch64 wheels
71-
uses: actions/upload-artifact@v4
72-
with:
73-
name: built-wheels-aarch64
74-
path: wheelhouse/*.whl
75-
retention-days: 2
7644

7745
# ✅ Step 2: Publish to PyPI (Outside the Container)
7846
publish:
7947
runs-on: ubuntu-latest
80-
needs: [ build-x86_64, build-aarch64 ] # Wait for both builds
48+
needs: build # Ensures this runs after the build job
8149
permissions:
8250
# IMPORTANT: this permission is mandatory for Trusted Publishing
8351
id-token: write
8452
contents: read
8553
steps:
86-
- name: Download x86_64 wheels
87-
uses: actions/download-artifact@v4
88-
with:
89-
name: built-wheels-x86_64
90-
path: wheelhouse
91-
92-
- name: Download aarch64 wheels
54+
- name: Download built wheels
9355
uses: actions/download-artifact@v4
9456
with:
95-
name: built-wheels-aarch64
57+
name: built-wheels
9658
path: wheelhouse
9759

9860
- name: Publish to PyPI

0 commit comments

Comments
 (0)