File tree Expand file tree Collapse file tree 2 files changed +33
-7
lines changed Expand file tree Collapse file tree 2 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 4
4
pi_task :
5
5
arm_container :
6
6
matrix :
7
- - image : dtcooper/raspberrypi-os:python -bullseye
7
+ - image : dtcooper/raspberrypi-os:python3.12 -bullseye
8
8
- image : dtcooper/raspberrypi-os:python3.11-bullseye
9
9
- image : dtcooper/raspberrypi-os:python3.10-bullseye
10
10
- image : dtcooper/raspberrypi-os:python3.9-bullseye
11
11
setup_script :
12
12
- 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
14
14
build_raylib_script :
15
15
- git submodule update --init --recursive
16
16
- cd raylib-c
@@ -28,6 +28,18 @@ pi_task:
28
28
- python -m pip install --break-system-packages setuptools
29
29
- python -m pip install --break-system-packages wheel
30
30
- 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
31
43
artifacts :
32
44
path : " dist/*"
33
45
Original file line number Diff line number Diff line change @@ -67,12 +67,28 @@ jobs:
67
67
sudo cp raygui/src/raygui.h /usr/local/include/
68
68
69
69
- name : Build raylib-python-cffi
70
+ env :
71
+ RAYLIB_PLATFORM : ${{ matrix.raylib-platform }}
70
72
run : |
71
73
python -m pip install --upgrade pip
72
74
pip3 install "cffi>=1.17.1"
73
75
pip3 install wheel
74
76
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
76
92
77
93
- name : Upload build Artifact wheel
78
94
@@ -226,15 +242,13 @@ jobs:
226
242
run : |
227
243
pip3 install dist/*.whl
228
244
cd /
229
- echo "moo"
230
245
python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
231
- echo "woo"
232
246
cat /tmp/output
233
247
if grep -q "INFO: Initializing raylib" /tmp/output; then
234
- echo "boo "
248
+ echo "Passed "
235
249
exit 0
236
250
else
237
- echo "foo "
251
+ echo "Failed "
238
252
exit 1
239
253
fi
240
254
You can’t perform that action at this time.
0 commit comments