-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from OKaluza/master
Wheel build overhaul and removal of ffmpeg dependency
- Loading branch information
Showing
21 changed files
with
404 additions
and
361 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,86 @@ | ||
name: Wheel-build-test | ||
|
||
on: | ||
workflow_dispatch: | ||
#push: | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build test wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CIBW_BUILD_VERBOSITY: 1 #3 | ||
CIBW_SKIP: cp*-win32 *-musllinux_* *-manylinux_i686 | ||
CIBW_BUILD: cp312-* | ||
#CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* | ||
CIBW_ENVIRONMENT: > | ||
LV_LIB_DIRS=/usr/local/lib64:/usr/lib64:${HOME}/lib | ||
LV_INC_DIRS=${HOME}/include | ||
LV_MIN_DEPS=1 | ||
LV_ECHO_FAIL=1 | ||
LV_ARGS="-v" | ||
CIBW_BEFORE_BUILD_LINUX: > | ||
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && | ||
dnf install -y libtiff-devel mesa-libOSMesa-devel && echo {package} | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 | ||
CIBW_TEST_COMMAND_MACOS: > | ||
python -m pip install moderngl && | ||
export LV_CONTEXT=moderngl && | ||
git clone --depth 1 https://github.com/lavavu/Testing && | ||
cd Testing && | ||
python runall.py | ||
#CIBW_TEST_COMMAND_LINUX: > | ||
# export LV_CONTEXT=osmesa && | ||
# git clone --depth 1 https://github.com/lavavu/Testing && | ||
# cd Testing && | ||
# python runall.py | ||
|
||
strategy: | ||
matrix: | ||
# MacOS 13 runner is x86_64, 14 is arm64 | ||
# (https://cibuildwheel.pypa.io/en/stable/faq/#how) | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.22.0 | ||
|
||
- name: Build wheels | ||
run: | | ||
python -m cibuildwheel --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install build | ||
run: python -m pip install setuptools build | ||
|
||
- name: Build sdist | ||
run: python -m build . --sdist | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: sdist-${{ strategy.job-index }} | ||
path: dist/*.tar.gz | ||
|
||
|
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
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
Oops, something went wrong.