44pi_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
11+ env :
12+ matrix :
13+ - RAYLIB_PLATFORM : " Desktop"
14+ RAYLIB_OPENGL : " 2.1"
15+ - RAYLIB_PLATFORM : " SDL"
16+ RAYLIB_OPENGL : " 2.1"
17+ - RAYLIB_PLATFORM : " DRM"
18+ RAYLIB_OPENGL : " ES 2.0"
1119 setup_script :
1220 - 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
21+ - 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 libgbm-dev libdrm-dev
22+ build_sdl_script :
23+ - wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.30.7.tar.gz
24+ - tar xvfz release-2.30.7.tar.gz
25+ - mkdir buildsdl
26+ - cd buildsdl
27+ - cmake ../SDL-release-2.30.7 -DSDL_SHARED=OFF -DSDL_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
28+ - cmake --build . --config Release
29+ - cmake --install .
30+ - cd ..
1431 build_raylib_script :
1532 - git submodule update --init --recursive
1633 - cd raylib-c
1734 - mkdir build
1835 - cd build
19- - 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 ..
36+ - cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
2037 - make -j2
2138 - make install
39+ build_raylib_again_script :
40+ - cd raylib-c
41+ - mkdir build2
42+ - cd build2
43+ - cmake -DPLATFORM=${RAYLIB_PLATFORM} -DOPENGL_VERSION="${RAYLIB_OPENGL}" -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
44+ - make -j2
45+ - cp raylib/libraylib.a /usr/local/lib/libraylib.a
2246 build_script :
2347 - cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
2448 - cp physac/src/physac.h /usr/local/include/
@@ -28,6 +52,18 @@ pi_task:
2852 - python -m pip install --break-system-packages setuptools
2953 - python -m pip install --break-system-packages wheel
3054 - python setup.py bdist_wheel --plat-name manylinux2014_aarch64
55+ test_script :
56+ - python -m pip install --break-system-packages dist/*.whl
57+ - cd /
58+ - python -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
59+ - cat /tmp/output
60+ - if grep -q "INFO : Initializing raylib" /tmp/output; then
61+ - echo "Passed"
62+ - exit 0
63+ - else
64+ - echo "Failed"
65+ - exit 1
66+ - fi
3167 artifacts :
3268 path : " dist/*"
3369
@@ -36,14 +72,46 @@ mac_task:
3672 matrix :
3773 - image : ghcr.io/cirruslabs/macos-sonoma-xcode:latest
3874 env :
39- matrix :
40- - PY_VER : " 3.9"
41- - PY_VER : " 3.10"
42- - PY_VER : " 3.11"
43- - PY_VER : " 3.12"
75+ MACOSX_DEPLOYMENT_TARGET : " 11.0"
76+ matrix :
77+ - env :
78+ PY_VER : " 3.9"
79+ RAYLIB_PLATFORM : Desktop
80+ - env :
81+ PY_VER : " 3.9"
82+ RAYLIB_PLATFORM : SDL
83+ - env :
84+ PY_VER : " 3.10"
85+ RAYLIB_PLATFORM : Desktop
86+ - env :
87+ PY_VER : " 3.10"
88+ RAYLIB_PLATFORM : SDL
89+ - env :
90+ PY_VER : " 3.11"
91+ RAYLIB_PLATFORM : Desktop
92+ - env :
93+ PY_VER : " 3.12"
94+ RAYLIB_PLATFORM : SDL
95+ - env :
96+ PY_VER : " 3.13"
97+ RAYLIB_PLATFORM : Desktop
98+ - env :
99+ PY_VER : " 3.13"
100+ RAYLIB_PLATFORM : SDL
101+
102+
44103 setup_script :
45104 - brew update
46105 - brew install python@${PY_VER}
106+ build_sdl_script :
107+ - wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.30.7.tar.gz
108+ - tar xvfz release-2.30.7.tar.gz
109+ - mkdir buildsdl
110+ - cd buildsdl
111+ - cmake ../SDL-release-2.30.7 -DSDL_SHARED=OFF -DSDL_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
112+ - cmake --build . --config Release
113+ - sudo cmake --install .
114+ - cd ..
47115 build_raylib_script :
48116 - git submodule update --init --recursive
49117 - cd raylib-c
@@ -52,6 +120,13 @@ mac_task:
52120 - cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
53121 - make -j8
54122 - sudo make install
123+ build_raylib_again_script :
124+ - cd raylib-c
125+ - mkdir build2
126+ - cd build2
127+ - cmake -DPLATFORM=${RAYLIB_PLATFORM} -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
128+ - make -j8
129+ - sudo cp raylib/libraylib.a /usr/local/lib/libraylib.a
55130 build_script :
56131 - sudo cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
57132 - sudo cp physac/src/physac.h /usr/local/include/
@@ -61,5 +136,17 @@ mac_task:
61136 - /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages setuptools
62137 - /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages wheel
63138 - /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
139+ test_script :
140+ - /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages dist/*.whl
141+ - cd /
142+ - /opt/homebrew/bin/python${PY_VER} -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
143+ - cat /tmp/output
144+ - if grep -q "INFO : Initializing raylib" /tmp/output; then
145+ - echo "Passed"
146+ - exit 0
147+ - else
148+ - echo "Failed"
149+ - exit 1
150+ - fi
64151 artifacts :
65152 path : " dist/*"
0 commit comments