Skip to content

Commit c80cc59

Browse files
cirrus doesnt support macos 13 any more, so try it on github
1 parent d6d0b50 commit c80cc59

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/main/binary.zip
1+
# download at https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/pi/binary.zip
2+
# https://api.cirrus-ci.com/v1/artifact/github/electronstudio/raylib-python-cffi/mac/binary.zip
23

34
pi_task:
45
arm_container:
@@ -33,7 +34,6 @@ pi_task:
3334
mac_task:
3435
macos_instance:
3536
matrix:
36-
- image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
3737
- image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
3838
env:
3939
matrix:

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,54 @@ jobs:
6262
name: wheel
6363
path: dist/*
6464

65+
build-mac-arm:
66+
runs-on: macos-13-xlarge
67+
strategy:
68+
matrix:
69+
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-beta - 3.13.0', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
70+
steps:
71+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
72+
- uses: actions/checkout@v2
73+
with:
74+
submodules: recursive
75+
76+
- name: Setup Python
77+
uses: actions/[email protected]
78+
with:
79+
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
80+
python-version: ${{ matrix.python-version }}
81+
82+
83+
# Runs a set of commands using the runners shell
84+
- name: Build raylib
85+
run: |
86+
cd raylib-c
87+
mkdir build
88+
cd build
89+
cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
90+
make -j2
91+
sudo make install
92+
93+
- name: Copy extras
94+
run: |
95+
sudo cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
96+
sudo cp physac/src/physac.h /usr/local/include/
97+
sudo cp raygui/src/raygui.h /usr/local/include/
98+
99+
- name: Build raylib-python-cffi
100+
run: |
101+
python -m pip install --upgrade pip
102+
pip3 install "cffi>=1.17.0rc1"
103+
pip3 install wheel
104+
pip3 install setuptools
105+
python setup.py bdist_wheel
106+
107+
- name: Upload build Artifact wheel
108+
uses: actions/[email protected]
109+
with:
110+
name: wheel
111+
path: dist/*
112+
65113
# build-mac12-arm64:
66114
# runs-on: macos-12
67115
# strategy:

0 commit comments

Comments
 (0)