Skip to content

Commit 368abe4

Browse files
committed
Build universal wheels separately
1 parent 5b821e2 commit 368abe4

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
- published
1212

1313
jobs:
14-
Wheels:
14+
Compiled:
15+
name: Build Compiled Wheels
1516
runs-on: ${{ matrix.os }}
1617
strategy:
1718
matrix:
@@ -66,8 +67,27 @@ jobs:
6667
name: openskill-sdist
6768
path: wheelhouse/*.tar.gz
6869

70+
Universal:
71+
name: Build Universal Wheels
72+
runs-on: ubuntu-latest
73+
steps:
74+
- name: Checkout Repository
75+
uses: actions/checkout@v4
76+
77+
- name: Build Wheel
78+
run: |
79+
python -m pip install --upgrade build
80+
python -m build --wheel --outdir wheelhouse
81+
82+
- uses: actions/upload-artifact@v4
83+
with:
84+
name: openskill-universal-wheel
85+
path: wheelhouse/*.whl
86+
87+
6988
Upload:
70-
needs: [Wheels, Source]
89+
name: Upload Wheels to PyPi
90+
needs: [Compiled, Source]
7191
runs-on: ubuntu-latest
7292
environment: pypi
7393
permissions:
@@ -82,19 +102,6 @@ jobs:
82102
path: wheelhouse
83103
merge-multiple: true
84104

85-
- name: Set Up Python 3.13
86-
uses: actions/setup-python@v5
87-
with:
88-
python-version: "3.13"
89-
90-
- name: Upgrade Dependencies
91-
run: |
92-
python -m pip install --upgrade build
93-
python -m pip install --upgrade pip
94-
95-
- name: Build Project for Distribution
96-
run: python -m pip wheel -w wheelhouse .
97-
98105
- name: Publish Wheels to PyPi
99106
uses: pypa/gh-action-pypi-publish@release/v1
100107
with:

0 commit comments

Comments
 (0)