Skip to content

Commit 8cd77f5

Browse files
attempt arm64 mac build
1 parent da874b5 commit 8cd77f5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,20 @@ jobs:
6464
runs-on: macos-12
6565
strategy:
6666
matrix:
67-
python-version: ['3.10.5', 'pypy-3.9' ]
67+
python-version: ['3.10.5']
68+
# Requires universal2 build of python, which we get if we ask for 3.10.5 x86! Pypy not available in universal2
6869
steps:
69-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
7070
- uses: actions/checkout@v2
7171
with:
7272
submodules: recursive
7373

7474
- name: Setup Python
7575
uses: actions/[email protected]
7676
with:
77-
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
7877
python-version: ${{ matrix.python-version }}
79-
# The target architecture (x86, x64) of the Python interpreter.
8078
architecture: x64
8179

82-
# Runs a set of commands using the runners shell
80+
# Only build raylib for arm64 (although we could make a fat universal2 binary by asking for x86_64 as well)
8381
- name: Build raylib
8482
run: |
8583
cd raylib-c
@@ -92,6 +90,11 @@ jobs:
9290
run: |
9391
sudo cp physac/src/physac.h /usr/local/include/
9492
sudo cp raygui/src/raygui.h /usr/local/include/
93+
94+
# Name defaults to universal2 and it technically is, but it wont run on x86_64 because we didnt build raylib for that
95+
# so symbols are missing. So we override name to arm64. Why don't we make a working universal2 wheel? Because
96+
# 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
97+
# given that there is no SDK for universal until macosx_11_0
9598
- name: Build raylib-python-cffi
9699
run: |
97100
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)