Skip to content

Commit f735bd5

Browse files
use cirrus CI to do macos ARM64 builds
1 parent 877fe35 commit f735bd5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.cirrus.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#container:
2+
# image: python:3.11
3+
4+
5+
6+
task:
7+
macos_instance:
8+
matrix:
9+
- image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
10+
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
11+
env:
12+
matrix:
13+
- PY_VER: "3.9"
14+
- PY_VER: "3.10"
15+
- PY_VER: "3.11"
16+
setup_script:
17+
- brew update
18+
- brew install python@${PY_VER}
19+
build_raylib_script:
20+
- git submodule update --init --recursive
21+
- cd raylib-c
22+
- mkdir build
23+
- cd build
24+
- cmake -DBUILD_EXAMPLES=off -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
25+
- make -j8
26+
- sudo make install
27+
build_script:
28+
- sudo cp physac/src/physac.h /usr/local/include/
29+
- sudo cp raygui/src/raygui.h /usr/local/include/
30+
- /opt/homebrew/bin/python${PY_VER} -m pip install --upgrade pip
31+
- /opt/homebrew/bin/python${PY_VER} -m pip install cffi
32+
- /opt/homebrew/bin/python${PY_VER} -m pip install setuptools
33+
- /opt/homebrew/bin/python${PY_VER} -m pip install wheel
34+
- /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
35+
artifacts:
36+
path: "dist/*"

0 commit comments

Comments
 (0)