Skip to content

Commit

Permalink
Generate wheels for osx/win/lin for Py3.8..3.11 x86/x64 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
0vercl0k authored Jun 27, 2023
1 parent 2aad4cb commit 4c61a34
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/udmp-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
# nanobind does not support Python < 3.8.
python-version: ['3.8', '3.9', '3.10', '3.11']
variant:
- {os: windows-latest, generator: msvc, arch: x64, config: RelWithDebInfo, py-arch: x64}
- {os: windows-latest, generator: msvc, arch: win32, config: RelWithDebInfo, py-arch: x86}
Expand All @@ -85,7 +86,7 @@ jobs:
- {os: ubuntu-latest, generator: clang, arch: x64, config: RelWithDebInfo, py-arch: x64}
- {os: macos-latest, generator: clang, arch: x64, config: Release, py-arch: x64}
runs-on: ${{ matrix.variant.os }}
name: bindings / ${{ matrix.variant.os }} / ${{ matrix.variant.generator }} / ${{ matrix.variant.arch }}
name: bindings / ${{ matrix.variant.os }} / ${{ matrix.variant.generator }} / ${{ matrix.python-version }} / ${{ matrix.variant.arch }}
env:
NB_CPU: 1
CMAKE_FLAGS: "-DBUILD_PARSER:BOOL=OFF -DBUILD_PYTHON_BINDING:BOOL=ON"
Expand Down Expand Up @@ -156,11 +157,19 @@ jobs:
- name: Build wheel
run: |
cd src/python
python -m pip wheel -w ../../artifact .
mkdir ../../wheel
python -m pip wheel . -w ../../wheel
cd ../..
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheel/*.whl

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: python-${{ matrix.variant.os }}.${{ matrix.variant.generator }}-${{ matrix.variant.arch }}.${{ matrix.variant.config }}
path: artifact/

6 changes: 3 additions & 3 deletions src/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ build-backend = "scikit_build_core.build"

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

[tool.scikit-build]
wheel.py-api = "cp32"
wheel.py-api = "cp312"
minimum-version = "0.4"
build-dir = "build/{wheel_tag}"
cmake.minimum-version = "3.20"
Expand Down

0 comments on commit 4c61a34

Please sign in to comment.