Skip to content

Commit 6bcf1d7

Browse files
committed
pip: also build for python 3.12
1 parent b792c6c commit 6bcf1d7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/pip-build.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,33 @@ env:
88
jobs:
99
linux:
1010
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
pyver: [cp310-cp310, cp312-cp312]
1114
steps:
1215
- uses: actions/checkout@v4
1316
- name: Docker Image
1417
run: docker build SDK -t pypi
1518
- name: Build
1619
run: |
17-
docker run -e PYVER=cp310-cp310 -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
20+
docker run -e PYVER=${{ matrix.pyver }} -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
1821
f=`ls *.whl`
1922
mv $f ${f/linux/manylinux2014}
2023
pip3 install twine
2124
python -m twine upload --repository pypi *.whl
2225
windows:
2326
runs-on: windows-2019
27+
strategy:
28+
matrix:
29+
pyver: ['3.10', '3.12']
2430
steps:
2531
- uses: actions/checkout@v4
2632
- uses: ilammy/msvc-dev-cmd@v1
2733
with:
2834
toolset: 14.1
2935
- uses: actions/setup-python@v5
3036
with:
31-
python-version: '3.10'
37+
python-version: ${{ matrix.pyver }}
3238
# see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957
3339
- name: Remove Perl Strawberry (Workaround)
3440
run: rm -rf C:/Strawberry/
@@ -39,7 +45,7 @@ jobs:
3945
.\VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
4046
- name: Build
4147
run: |
42-
python -m pip install --upgrade pip==22.0.4
48+
python -m pip install --upgrade pip==24.0
4349
pip install setuptools wheel twine
4450
pip wheel . --verbose
4551
python -m twine upload --repository pypi *.whl
@@ -48,11 +54,14 @@ jobs:
4854
SKBUILD_BUILD_OPTIONS: -j4
4955
macos:
5056
runs-on: macos-12
57+
strategy:
58+
matrix:
59+
pyver: ['3.10', '3.12']
5160
steps:
5261
- uses: actions/checkout@v4
5362
- uses: actions/setup-python@v5
5463
with:
55-
python-version: '3.10'
64+
python-version: ${{ matrix.pyver }}
5665
- name: Build
5766
run: |
5867
pip install setuptools wheel twine

0 commit comments

Comments
 (0)