update CI with python 3.13 and raspberry pi builds (#130)
This commit is contained in:
parent
e08d9d4d1d
commit
bdc49267e2
3 changed files with 44 additions and 15 deletions
35
.cirrus.yml
35
.cirrus.yml
|
@ -1,9 +1,36 @@
|
||||||
#container:
|
|
||||||
# image: python:3.11
|
|
||||||
|
|
||||||
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/main/binary.zip
|
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/main/binary.zip
|
||||||
|
|
||||||
task:
|
pi_task:
|
||||||
|
arm_container:
|
||||||
|
matrix:
|
||||||
|
- image: dtcooper/raspberrypi-os:python-bullseye
|
||||||
|
- image: dtcooper/raspberrypi-os:python3.11-bullseye
|
||||||
|
- image: dtcooper/raspberrypi-os:python3.10-bullseye
|
||||||
|
- image: dtcooper/raspberrypi-os:python3.9-bullseye
|
||||||
|
setup_script:
|
||||||
|
- apt update
|
||||||
|
- apt -y install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
|
||||||
|
build_raylib_script:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
- cd raylib-c
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- cmake -DPLATFORM="Desktop" -DOPENGL_VERSION=2.1 -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
- make -j2
|
||||||
|
- make install
|
||||||
|
build_script:
|
||||||
|
- cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
|
||||||
|
- cp physac/src/physac.h /usr/local/include/
|
||||||
|
- cp raygui/src/raygui.h /usr/local/include/
|
||||||
|
- python -m pip install --break-system-packages --upgrade pip
|
||||||
|
- python -m pip install --break-system-packages cffi
|
||||||
|
- python -m pip install --break-system-packages setuptools
|
||||||
|
- python -m pip install --break-system-packages wheel
|
||||||
|
- python setup.py bdist_wheel --plat-name manylinux2014_aarch64
|
||||||
|
artifacts:
|
||||||
|
path: "dist/*"
|
||||||
|
|
||||||
|
mac_task:
|
||||||
macos_instance:
|
macos_instance:
|
||||||
matrix:
|
matrix:
|
||||||
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
|
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
|
||||||
|
|
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
|
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-beta - 3.13.0', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
||||||
- name: Build raylib-python-cffi
|
- name: Build raylib-python-cffi
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip3 install cffi
|
pip3 install "cffi>=1.17.0rc1"
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install setuptools
|
pip3 install setuptools
|
||||||
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64
|
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64
|
||||||
|
@ -166,7 +166,7 @@ jobs:
|
||||||
# You can use PyPy versions in python-version.
|
# You can use PyPy versions in python-version.
|
||||||
# For example, pypy2 and pypy3
|
# For example, pypy2 and pypy3
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
|
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-beta - 3.13.0', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -200,7 +200,7 @@ jobs:
|
||||||
- name: Build raylib-python-cffi
|
- name: Build raylib-python-cffi
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip3 install cffi
|
pip3 install "cffi>=1.17.0rc1"
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install setuptools
|
pip3 install setuptools
|
||||||
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
|
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
|
||||||
|
@ -250,7 +250,7 @@ jobs:
|
||||||
# You can use PyPy versions in python-version.
|
# You can use PyPy versions in python-version.
|
||||||
# For example, pypy2 and pypy3
|
# For example, pypy2 and pypy3
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
|
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-beta - 3.13.0', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -282,7 +282,7 @@ jobs:
|
||||||
- name: Build raylib-python-cffi
|
- name: Build raylib-python-cffi
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip3 install cffi
|
pip3 install "cffi>=1.17.0rc1"
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install setuptools
|
pip3 install setuptools
|
||||||
del raylib\dynamic\*.so* >nul 2>&1
|
del raylib\dynamic\*.so* >nul 2>&1
|
||||||
|
@ -311,7 +311,7 @@ jobs:
|
||||||
uses: actions/setup-python@v2.2.2
|
uses: actions/setup-python@v2.2.2
|
||||||
with:
|
with:
|
||||||
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
|
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
|
||||||
python-version: '3.10'
|
python-version: '3.12'
|
||||||
# The target architecture (x86, x64) of the Python interpreter.
|
# The target architecture (x86, x64) of the Python interpreter.
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
|
@ -334,7 +334,7 @@ jobs:
|
||||||
- name: Build raylib-python-cffi
|
- name: Build raylib-python-cffi
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip3 install cffi
|
pip3 install "cffi>=1.17.0rc1"
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install setuptools
|
pip3 install setuptools
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
|
@ -358,14 +358,14 @@ jobs:
|
||||||
uses: actions/setup-python@v2.2.2
|
uses: actions/setup-python@v2.2.2
|
||||||
with:
|
with:
|
||||||
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
|
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
|
||||||
python-version: '3.10'
|
python-version: '3.12'
|
||||||
# The target architecture (x86, x64) of the Python interpreter.
|
# The target architecture (x86, x64) of the Python interpreter.
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- name: Build raylib-python-cffi-dynamic
|
- name: Build raylib-python-cffi-dynamic
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip3 install cffi
|
pip3 install "cffi>=1.17.0rc1"
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install setuptools
|
pip3 install setuptools
|
||||||
cd dynamic
|
cd dynamic
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -30,6 +30,8 @@ setup(
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)",
|
"License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
|
@ -38,7 +40,7 @@ setup(
|
||||||
],
|
],
|
||||||
packages=["raylib", "pyray"],
|
packages=["raylib", "pyray"],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=["cffi>=1.14.6"],
|
install_requires=["cffi>=1.17.0rc1"],
|
||||||
distclass=BinaryDistribution,
|
distclass=BinaryDistribution,
|
||||||
cffi_modules=["raylib/build.py:ffibuilder"]
|
cffi_modules=["raylib/build.py:ffibuilder"]
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue