39 lines
No EOL
1.5 KiB
YAML
39 lines
No EOL
1.5 KiB
YAML
#container:
|
|
# image: python:3.11
|
|
|
|
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/main/binary.zip
|
|
|
|
task:
|
|
macos_instance:
|
|
matrix:
|
|
- image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
|
|
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
|
|
- image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
|
|
env:
|
|
matrix:
|
|
- PY_VER: "3.9"
|
|
- PY_VER: "3.10"
|
|
- PY_VER: "3.11"
|
|
- PY_VER: "3.12"
|
|
setup_script:
|
|
- brew update
|
|
- brew install python@${PY_VER}
|
|
build_raylib_script:
|
|
- git submodule update --init --recursive
|
|
- cd raylib-c
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
|
|
- make -j8
|
|
- sudo make install
|
|
build_script:
|
|
- sudo cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
|
|
- sudo cp physac/src/physac.h /usr/local/include/
|
|
- sudo cp raygui/src/raygui.h /usr/local/include/
|
|
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages --upgrade pip
|
|
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages cffi
|
|
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages setuptools
|
|
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages wheel
|
|
- /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
|
|
artifacts:
|
|
path: "dist/*" |