Skip to content

Commit f680b7a

Browse files
authored
Update wheels.yml
1 parent 6fa9bb4 commit f680b7a

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed

.github/workflows/wheels.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,29 @@ name: Build Wheels
22

33
on:
44
push:
5-
branches:
6-
- main # Or your main branch name
5+
branches: [main, master]
76
pull_request:
8-
branches:
9-
- main
7+
branches: [main, master]
108

119
jobs:
12-
build_wheels:
13-
runs-on: ${{ matrix.os }}
10+
build:
11+
runs-on: ubuntu-latest
1412
strategy:
1513
matrix:
16-
os: [ubuntu-latest, windows-latest, macos-latest]
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
18-
14+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1915
steps:
20-
- uses: actions/checkout@v3
21-
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
27-
- name: Install cibuildwheel
28-
run: pip install cibuildwheel
29-
30-
- name: Build wheels
31-
run: cibuildwheel --output-dir wheelhouse
32-
33-
- name: Upload wheels
34-
uses: actions/upload-artifact@v3
35-
with:
36-
name: wheels
37-
path: wheelhouse
38-
if-no-files-found: error # Fail if no wheels were built.
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Upgrade pip and install build tools
22+
run: |
23+
python -m pip install --upgrade pip setuptools wheel build
24+
- name: Build wheel
25+
run: python -m build --wheel --no-isolation
26+
- name: Upload wheel artifact
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: pyplusplus-wheel-${{ matrix.python-version }}
30+
path: dist/*.whl

0 commit comments

Comments
 (0)