Skip to content

Commit b8231d2

Browse files
try
1 parent 29f5f42 commit b8231d2

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.cirrus.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,17 @@ mac_task:
111111
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages setuptools
112112
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages wheel
113113
- /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
114+
test_script:
115+
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages dist/*.whl
116+
- cd /
117+
- /opt/homebrew/bin/python${PY_VER} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
118+
- cat /tmp/output
119+
- if grep -q "INFO: Initializing raylib" /tmp/output; then
120+
- echo "Passed"
121+
- exit 0
122+
- else
123+
- echo "Failed"
124+
- exit 1
125+
- fi
114126
artifacts:
115127
path: "dist/*"

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,21 @@ jobs:
326326
del raylib\dynamic\32bit\* >nul 2>&1
327327
python setup.py bdist_wheel
328328
shell: cmd
329+
330+
- name: Test
331+
shell: bash
332+
run: |
333+
pip3 install dist/*.whl
334+
cd /
335+
python3 -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
336+
cat /tmp/output
337+
if grep -q "INFO: Initializing raylib" /tmp/output; then
338+
echo "Passed"
339+
exit 0
340+
else
341+
echo "Failed"
342+
exit 1
343+
fi
329344
330345
- name: Upload build Artifact wheel
331346
uses: actions/[email protected]

raylib/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def build_unix():
169169
'-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
170170
'CoreVideo']
171171
if USE_SDL2:
172-
extra_link_args += ['/usr/local/lib/libSDL2.a']
172+
extra_link_args += ['/usr/local/lib/libSDL2.a', '-framework', 'CoreHaptics']
173173
libraries = []
174174
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types", "-D_CFFI_NO_LIMITED_API"]
175175
else: #platform.system() == "Linux":

0 commit comments

Comments
 (0)