Skip to content

Commit 1e32b8e

Browse files
Merging workflow changes to build python3.12 wheels
1 parent e7b3ae9 commit 1e32b8e

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/build_wheels.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ jobs:
1212
matrix:
1313
os: [windows-2019]
1414
arch: [x86, x64]
15-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
15+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v4
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
architecture: ${{ matrix.arch }}
2626

2727
- name: Install packages
28-
run: pip install wheel
28+
run: |
29+
pip install wheel
30+
pip install setuptools
2931
3032
- name: build
3133
run: python setup.py bdist_wheel
@@ -44,21 +46,23 @@ jobs:
4446
# There is documentation here https://github.com/pypa/cibuildwheel/blob/main/docs/cpp_standards.md on how to
4547
# set it but I could not get it to work while using the standard images provided by github actions does work.
4648
os: [macos-latest]
47-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
49+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
4850
env:
4951
SYSTEM_VERSION_COMPAT: 0
5052

5153
steps:
5254
- name: Checkout repository
53-
uses: actions/checkout@v2
55+
uses: actions/checkout@v4
5456

5557
- name: Set up Python ${{ matrix.python-version }}
56-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v4
5759
with:
5860
python-version: ${{ matrix.python-version }}
5961

6062
- name: Install packages
61-
run: pip install wheel
63+
run: |
64+
pip install wheel
65+
pip install setuptools
6266
6367
- name: build
6468
run: python setup.py bdist_wheel
@@ -80,6 +84,9 @@ jobs:
8084
# Note that at least manylinux2014 is needed to get support for C++17
8185
- name: Build manylinux Python wheels
8286
uses: RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64
87+
with:
88+
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
89+
build-requirements: 'setuptools'
8390

8491
- name: upload wheels
8592
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)