Skip to content

Commit 29f5f42

Browse files
try
1 parent b14d0a2 commit 29f5f42

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

.cirrus.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
pi_task:
55
arm_container:
66
matrix:
7-
- image: dtcooper/raspberrypi-os:python-bullseye
7+
- image: dtcooper/raspberrypi-os:python3.12-bullseye
88
- image: dtcooper/raspberrypi-os:python3.11-bullseye
99
- image: dtcooper/raspberrypi-os:python3.10-bullseye
1010
- image: dtcooper/raspberrypi-os:python3.9-bullseye
1111
setup_script:
1212
- apt update
13-
- apt -y install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
13+
- apt -y install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libwayland-dev libxkbcommon-dev
1414
build_raylib_script:
1515
- git submodule update --init --recursive
1616
- cd raylib-c
@@ -28,6 +28,18 @@ pi_task:
2828
- python -m pip install --break-system-packages setuptools
2929
- python -m pip install --break-system-packages wheel
3030
- python setup.py bdist_wheel --plat-name manylinux2014_aarch64
31+
test_script:
32+
- python -m pip install --break-system-packages dist/*.whl
33+
- cd /
34+
- python -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
35+
- cat /tmp/output
36+
- if grep -q "INFO: Initializing raylib" /tmp/output; then
37+
- echo "Passed"
38+
- exit 0
39+
- else
40+
- echo "Failed"
41+
- exit 1
42+
- fi
3143
artifacts:
3244
path: "dist/*"
3345

.github/workflows/build.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,28 @@ jobs:
6767
sudo cp raygui/src/raygui.h /usr/local/include/
6868
6969
- name: Build raylib-python-cffi
70+
env:
71+
RAYLIB_PLATFORM: ${{ matrix.raylib-platform }}
7072
run: |
7173
python -m pip install --upgrade pip
7274
pip3 install "cffi>=1.17.1"
7375
pip3 install wheel
7476
pip3 install setuptools
75-
RAYLIB_PLATFORM=${{ matrix.raylib-platform }} python setup.py bdist_wheel --plat-name macosx_10_15_x86_64
77+
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64
78+
79+
- name: Test
80+
run: |
81+
pip3 install dist/*.whl
82+
cd /
83+
python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
84+
cat /tmp/output
85+
if grep -q "INFO: Initializing raylib" /tmp/output; then
86+
echo "Passed"
87+
exit 0
88+
else
89+
echo "Failed"
90+
exit 1
91+
fi
7692
7793
- name: Upload build Artifact wheel
7894
uses: actions/[email protected]
@@ -226,15 +242,13 @@ jobs:
226242
run: |
227243
pip3 install dist/*.whl
228244
cd /
229-
echo "moo"
230245
python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
231-
echo "woo"
232246
cat /tmp/output
233247
if grep -q "INFO: Initializing raylib" /tmp/output; then
234-
echo "boo"
248+
echo "Passed"
235249
exit 0
236250
else
237-
echo "foo"
251+
echo "Failed"
238252
exit 1
239253
fi
240254

0 commit comments

Comments
 (0)