-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# os: [ubuntu-20.04, windows-2019, macOS-11] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Used to host cibuildwheel | ||
- uses: actions/setup-python@v3 | ||
|
||
- name: install deps | ||
run: sudo apt install -y meson ninja-build libdrm-dev libevdev-dev libfmt-dev | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.16.2 | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
# to supply options, put them in 'env', like: | ||
# env: | ||
# CIBW_SOME_OPTION: value | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[build-system] | ||
build-backend = 'mesonpy' | ||
requires = ['meson-python', 'pybind11'] | ||
|
||
[project] | ||
name = 'pykms' | ||
version = '0.0.0a1' | ||
description = 'kms++ python bindings' | ||
readme = 'README.md' | ||
requires-python = '>=3.10' | ||
|
||
#[project.urls] | ||
#Source = "https://github.com/will-v-pi/pykms" | ||
#"kms++ Homepage" = "https://github.com/tomba/kmsxx" | ||
|
||
#[tool.meson-python.args] | ||
#setup = [ | ||
# '-Drevision=a4002d2' | ||
#] | ||
|
||
[tool.cibuildwheel] | ||
|
||
manylinux-x86_64-image = "manylinux_2_28" | ||
|
||
[tool.cibuildwheel.linux] | ||
before-all = "yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && yum install -y fmt-devel" |