Skip to content

Commit abe1655

Browse files
attempt arm64 mac build
1 parent b817fe3 commit abe1655

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ jobs:
5252
python -m pip install --upgrade pip
5353
pip3 install cffi
5454
pip3 install wheel
55-
python setup.py bdist_wheel --py-limited-api=cp37
55+
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64 --py-limited-api=cp37
5656
5757
- name: Upload build Artifact wheel
5858
uses: actions/[email protected]
5959
with:
6060
name: wheel
6161
path: dist/*
6262

63-
build-mac12-test:
63+
build-mac12-arm64:
6464
runs-on: macos-12
6565
strategy:
6666
matrix:
67-
python-version: ['3.10' ]
67+
python-version: ['3.10.5' ]
6868
steps:
6969
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
7070
- uses: actions/checkout@v2
@@ -77,15 +77,15 @@ jobs:
7777
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
7878
python-version: ${{ matrix.python-version }}
7979
# The target architecture (x86, x64) of the Python interpreter.
80-
architecture: x64
80+
architecture: universal2
8181

8282
# Runs a set of commands using the runners shell
8383
- name: Build raylib
8484
run: |
8585
cd raylib-c
8686
mkdir build
8787
cd build
88-
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
88+
cmake CMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
8989
make -j2
9090
sudo make install
9191
- name: Copy extras
@@ -100,6 +100,12 @@ jobs:
100100
python setup.py bdist_wheel --py-limited-api=cp310
101101
102102
103+
- name: Upload build Artifact wheel
104+
uses: actions/[email protected]
105+
with:
106+
name: wheel
107+
path: dist/*
108+
103109
build-linux:
104110
runs-on: ubuntu-18.04
105111
strategy:
@@ -159,7 +165,7 @@ jobs:
159165

160166
- name: Build raylib-python-cffi
161167
run: |
162-
python3 setup.py bdist_wheel
168+
python3 setup.py bdist_wheel --py-limited-api=cp37
163169
164170
- name: Upload build Artifact wheel
165171
uses: actions/[email protected]

0 commit comments

Comments
 (0)