Skip to content

Commit

Permalink
pip: also build for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Apr 14, 2024
1 parent b792c6c commit 6bcf1d7
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/pip-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,33 @@ env:
jobs:
linux:
runs-on: ubuntu-20.04
strategy:
matrix:
pyver: [cp310-cp310, cp312-cp312]
steps:
- uses: actions/checkout@v4
- name: Docker Image
run: docker build SDK -t pypi
- name: Build
run: |
docker run -e PYVER=cp310-cp310 -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
docker run -e PYVER=${{ matrix.pyver }} -e SKBUILD_BUILD_OPTIONS=-j4 --rm -v `pwd`:/workspace pypi
f=`ls *.whl`
mv $f ${f/linux/manylinux2014}
pip3 install twine
python -m twine upload --repository pypi *.whl
windows:
runs-on: windows-2019
strategy:
matrix:
pyver: ['3.10', '3.12']
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
toolset: 14.1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: ${{ matrix.pyver }}
# see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957
- name: Remove Perl Strawberry (Workaround)
run: rm -rf C:/Strawberry/
Expand All @@ -39,7 +45,7 @@ jobs:
.\VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
- name: Build
run: |
python -m pip install --upgrade pip==22.0.4
python -m pip install --upgrade pip==24.0
pip install setuptools wheel twine
pip wheel . --verbose
python -m twine upload --repository pypi *.whl
Expand All @@ -48,11 +54,14 @@ jobs:
SKBUILD_BUILD_OPTIONS: -j4
macos:
runs-on: macos-12
strategy:
matrix:
pyver: ['3.10', '3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: ${{ matrix.pyver }}
- name: Build
run: |
pip install setuptools wheel twine
Expand Down

0 comments on commit 6bcf1d7

Please sign in to comment.