Skip to content

Commit bdc4926

Browse files
update CI with python 3.13 and raspberry pi builds (#130)
1 parent e08d9d4 commit bdc4926

File tree

3 files changed

+44
-15
lines changed

3 files changed

+44
-15
lines changed

.cirrus.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,36 @@
1-
#container:
2-
# image: python:3.11
3-
41
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/main/binary.zip
52

6-
task:
3+
pi_task:
4+
arm_container:
5+
matrix:
6+
- image: dtcooper/raspberrypi-os:python-bullseye
7+
- image: dtcooper/raspberrypi-os:python3.11-bullseye
8+
- image: dtcooper/raspberrypi-os:python3.10-bullseye
9+
- image: dtcooper/raspberrypi-os:python3.9-bullseye
10+
setup_script:
11+
- apt update
12+
- apt -y install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
13+
build_raylib_script:
14+
- git submodule update --init --recursive
15+
- cd raylib-c
16+
- mkdir build
17+
- cd build
18+
- 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 ..
19+
- make -j2
20+
- make install
21+
build_script:
22+
- cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
23+
- cp physac/src/physac.h /usr/local/include/
24+
- cp raygui/src/raygui.h /usr/local/include/
25+
- python -m pip install --break-system-packages --upgrade pip
26+
- python -m pip install --break-system-packages cffi
27+
- python -m pip install --break-system-packages setuptools
28+
- python -m pip install --break-system-packages wheel
29+
- python setup.py bdist_wheel --plat-name manylinux2014_aarch64
30+
artifacts:
31+
path: "dist/*"
32+
33+
mac_task:
734
macos_instance:
835
matrix:
936
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: macos-11
1818
strategy:
1919
matrix:
20-
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' ]
20+
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' ]
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v2
@@ -51,7 +51,7 @@ jobs:
5151
- name: Build raylib-python-cffi
5252
run: |
5353
python -m pip install --upgrade pip
54-
pip3 install cffi
54+
pip3 install "cffi>=1.17.0rc1"
5555
pip3 install wheel
5656
pip3 install setuptools
5757
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64
@@ -166,7 +166,7 @@ jobs:
166166
# You can use PyPy versions in python-version.
167167
# For example, pypy2 and pypy3
168168
matrix:
169-
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' ]
169+
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' ]
170170
steps:
171171
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
172172
- uses: actions/checkout@v2
@@ -200,7 +200,7 @@ jobs:
200200
- name: Build raylib-python-cffi
201201
run: |
202202
python -m pip install --upgrade pip
203-
pip3 install cffi
203+
pip3 install "cffi>=1.17.0rc1"
204204
pip3 install wheel
205205
pip3 install setuptools
206206
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
@@ -250,7 +250,7 @@ jobs:
250250
# You can use PyPy versions in python-version.
251251
# For example, pypy2 and pypy3
252252
matrix:
253-
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' ]
253+
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' ]
254254
steps:
255255
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
256256
- uses: actions/checkout@v2
@@ -282,7 +282,7 @@ jobs:
282282
- name: Build raylib-python-cffi
283283
run: |
284284
python -m pip install --upgrade pip
285-
pip3 install cffi
285+
pip3 install "cffi>=1.17.0rc1"
286286
pip3 install wheel
287287
pip3 install setuptools
288288
del raylib\dynamic\*.so* >nul 2>&1
@@ -311,7 +311,7 @@ jobs:
311311
uses: actions/[email protected]
312312
with:
313313
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
314-
python-version: '3.10'
314+
python-version: '3.12'
315315
# The target architecture (x86, x64) of the Python interpreter.
316316
architecture: x64
317317

@@ -334,7 +334,7 @@ jobs:
334334
- name: Build raylib-python-cffi
335335
run: |
336336
python -m pip install --upgrade pip
337-
pip3 install cffi
337+
pip3 install "cffi>=1.17.0rc1"
338338
pip3 install wheel
339339
pip3 install setuptools
340340
python setup.py sdist
@@ -358,14 +358,14 @@ jobs:
358358
uses: actions/[email protected]
359359
with:
360360
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
361-
python-version: '3.10'
361+
python-version: '3.12'
362362
# The target architecture (x86, x64) of the Python interpreter.
363363
architecture: x64
364364

365365
- name: Build raylib-python-cffi-dynamic
366366
run: |
367367
python -m pip install --upgrade pip
368-
pip3 install cffi
368+
pip3 install "cffi>=1.17.0rc1"
369369
pip3 install wheel
370370
pip3 install setuptools
371371
cd dynamic

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def has_ext_modules(foo):
3030
classifiers=[
3131
"License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)",
3232
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.13",
34+
"Programming Language :: Python :: 3.12",
3335
"Programming Language :: Python :: 3.11",
3436
"Programming Language :: Python :: 3.10",
3537
"Programming Language :: Python :: 3.9",
@@ -38,7 +40,7 @@ def has_ext_modules(foo):
3840
],
3941
packages=["raylib", "pyray"],
4042
include_package_data=True,
41-
install_requires=["cffi>=1.14.6"],
43+
install_requires=["cffi>=1.17.0rc1"],
4244
distclass=BinaryDistribution,
4345
cffi_modules=["raylib/build.py:ffibuilder"]
4446
)

0 commit comments

Comments
 (0)