forked from electronstudio/raylib-python-cffi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
36 lines (33 loc) · 1.09 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#container:
# image: python:3.11
task:
macos_instance:
matrix:
- image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
env:
matrix:
- PY_VER: "3.9"
- PY_VER: "3.10"
- PY_VER: "3.11"
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 -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- sudo make install
build_script:
- 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 --upgrade pip
- /opt/homebrew/bin/python${PY_VER} -m pip install cffi
- /opt/homebrew/bin/python${PY_VER} -m pip install setuptools
- /opt/homebrew/bin/python${PY_VER} -m pip install wheel
- /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
artifacts:
path: "dist/*"