Skip to content

Commit

Permalink
ci: cibuildwheel setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasblixt committed Nov 28, 2023
1 parent a2f5cdd commit 486900d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/punchboot-tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build punchboot-tools

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
with:
package-dir: .
output-dir: wheelhouse
config-file: "pyproject.toml"

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ exclude = [
"^doc.*",
"^scripts/menuconfig\\.py$"
]

[tool.cibuildwheel.linux]
before-all = "yum install -y libusbx-devel"
skip = "*-manylinux_i686 pp* *-musllinux*"
archs = ["auto"]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package_data={
"punchboot": ["py.typed"],
},
python_requires=">=3.8",
entry_points={"console_scripts": ["punchboot=punchboot.__main__:cli"]},
ext_modules=[
Extension(
Expand Down

0 comments on commit 486900d

Please sign in to comment.