attempt arm64 mac build

This commit is contained in:
richard 2022-06-26 23:59:57 +01:00
parent b817fe3ad6
commit abe165507f

View file

@ -52,7 +52,7 @@ jobs:
python -m pip install --upgrade pip
pip3 install cffi
pip3 install wheel
python setup.py bdist_wheel --py-limited-api=cp37
python setup.py bdist_wheel --plat-name macosx_10_15_x86_64 --py-limited-api=cp37
- name: Upload build Artifact wheel
uses: actions/upload-artifact@v2.2.4
@ -60,11 +60,11 @@ jobs:
name: wheel
path: dist/*
build-mac12-test:
build-mac12-arm64:
runs-on: macos-12
strategy:
matrix:
python-version: ['3.10' ]
python-version: ['3.10.5' ]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
@ -77,7 +77,7 @@ jobs:
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
python-version: ${{ matrix.python-version }}
# The target architecture (x86, x64) of the Python interpreter.
architecture: x64
architecture: universal2
# Runs a set of commands using the runners shell
- name: Build raylib
@ -85,7 +85,7 @@ jobs:
cd raylib-c
mkdir build
cd build
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
cmake CMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
make -j2
sudo make install
- name: Copy extras
@ -100,6 +100,12 @@ jobs:
python setup.py bdist_wheel --py-limited-api=cp310
- name: Upload build Artifact wheel
uses: actions/upload-artifact@v2.2.4
with:
name: wheel
path: dist/*
build-linux:
runs-on: ubuntu-18.04
strategy:
@ -159,7 +165,7 @@ jobs:
- name: Build raylib-python-cffi
run: |
python3 setup.py bdist_wheel
python3 setup.py bdist_wheel --py-limited-api=cp37
- name: Upload build Artifact wheel
uses: actions/upload-artifact@v2.2.4