Skip to content

Commit b85552a

Browse files
try lowing min python version for macos wheels. try build for 10.14.
1 parent 0e0c9a0 commit b85552a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
strategy:
1919
matrix:
2020
python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
21+
env:
22+
MACOSX_DEPLOYMENT_TARGET: 10.14
2123
steps:
2224
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2325
- uses: actions/checkout@v2
@@ -52,7 +54,7 @@ jobs:
5254
python -m pip install --upgrade pip
5355
pip3 install cffi
5456
pip3 install wheel
55-
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64 --py-limited-api=cp37
57+
python setup.py bdist_wheel --plat-name macosx_10_14_x86_64 --py-limited-api=cp37
5658
5759
- name: Upload build Artifact wheel
5860
uses: actions/[email protected]
@@ -100,7 +102,7 @@ jobs:
100102
python -m pip install --upgrade pip
101103
pip3 install cffi
102104
pip3 install wheel
103-
python setup.py bdist_wheel --plat-name macosx_12_0_arm64 --py-limited-api=cp310
105+
python setup.py bdist_wheel --plat-name macosx_12_0_arm64 --py-limited-api=cp37
104106
105107
106108
- name: Upload build Artifact wheel
@@ -129,7 +131,7 @@ jobs:
129131
python-version: ${{ matrix.python-version }}
130132
architecture: x64
131133

132-
# Only build raylib for arm64 (although we could make a fat universal2 binary by asking for x86_64 as well)
134+
# build raylib for arm64 and x86_64 as well
133135
- name: Build raylib
134136
run: |
135137
cd raylib-c
@@ -143,16 +145,13 @@ jobs:
143145
sudo cp physac/src/physac.h /usr/local/include/
144146
sudo cp raygui/src/raygui.h /usr/local/include/
145147
146-
# Name defaults to universal2 and it technically is, but it wont run on x86_64 because we didnt build raylib for that
147-
# so symbols are missing. So we override name to arm64. Why don't we make a working universal2 wheel? Because
148-
# I'd rather have a separate x86_64 that I can test, and I want it to work on 10_15 but I'm not sure a 'macosx_10_15_universal2' is valid
149-
# given that there is no SDK for universal until macosx_11_0
148+
150149
- name: Build raylib-python-cffi
151150
run: |
152151
python -m pip install --upgrade pip
153152
pip3 install cffi
154153
pip3 install wheel
155-
python setup.py bdist_wheel --plat-name macosx_11_0_arm64 --py-limited-api=cp39
154+
python setup.py bdist_wheel --plat-name macosx_11_0_arm64 --py-limited-api=cp37
156155
157156
158157
- name: Upload build Artifact wheel

raylib-c

0 commit comments

Comments
 (0)