Skip to content

Commit 4c61a34

Browse files
authored
Generate wheels for osx/win/lin for Py3.8..3.11 x86/x64 (#10)
1 parent 2aad4cb commit 4c61a34

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/udmp-parser.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
strategy:
7777
fail-fast: false
7878
matrix:
79-
python-version: [3.9]
79+
# nanobind does not support Python < 3.8.
80+
python-version: ['3.8', '3.9', '3.10', '3.11']
8081
variant:
8182
- {os: windows-latest, generator: msvc, arch: x64, config: RelWithDebInfo, py-arch: x64}
8283
- {os: windows-latest, generator: msvc, arch: win32, config: RelWithDebInfo, py-arch: x86}
@@ -85,7 +86,7 @@ jobs:
8586
- {os: ubuntu-latest, generator: clang, arch: x64, config: RelWithDebInfo, py-arch: x64}
8687
- {os: macos-latest, generator: clang, arch: x64, config: Release, py-arch: x64}
8788
runs-on: ${{ matrix.variant.os }}
88-
name: bindings / ${{ matrix.variant.os }} / ${{ matrix.variant.generator }} / ${{ matrix.variant.arch }}
89+
name: bindings / ${{ matrix.variant.os }} / ${{ matrix.variant.generator }} / ${{ matrix.python-version }} / ${{ matrix.variant.arch }}
8990
env:
9091
NB_CPU: 1
9192
CMAKE_FLAGS: "-DBUILD_PARSER:BOOL=OFF -DBUILD_PYTHON_BINDING:BOOL=ON"
@@ -156,11 +157,19 @@ jobs:
156157
- name: Build wheel
157158
run: |
158159
cd src/python
159-
python -m pip wheel -w ../../artifact .
160+
mkdir ../../wheel
161+
python -m pip wheel . -w ../../wheel
160162
cd ../..
161163
164+
- name: Upload wheel
165+
uses: actions/upload-artifact@v3
166+
with:
167+
name: wheels
168+
path: wheel/*.whl
169+
162170
- name: Upload artifacts
163171
uses: actions/upload-artifact@v3
164172
with:
165173
name: python-${{ matrix.variant.os }}.${{ matrix.variant.generator }}-${{ matrix.variant.arch }}.${{ matrix.variant.config }}
166174
path: artifact/
175+

src/python/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "udmp-parser"
7-
version = "0.4.1"
7+
version = "0.4.2"
88
description = "A Cross-Platform C++ parser library for Windows user minidumps."
99
readme = "README.md"
10-
requires-python = ">=3.2"
10+
requires-python = ">=3.8"
1111
authors = [{ name = "0vercl0k", email = "[email protected]" }]
1212
classifiers = [
1313
"Development Status :: 4 - Beta",
@@ -25,7 +25,7 @@ Homepage = "https://github.com/0vercl0k/udmp-parser"
2525
profile = "black"
2626

2727
[tool.scikit-build]
28-
wheel.py-api = "cp32"
28+
wheel.py-api = "cp312"
2929
minimum-version = "0.4"
3030
build-dir = "build/{wheel_tag}"
3131
cmake.minimum-version = "3.20"

0 commit comments

Comments
 (0)