From db77dc121073fe44212e1763fa213760e2b507ba Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 21 Aug 2022 00:44:01 +0100 Subject: [PATCH] py-limited-api was NOT working, most builds were broken. Why did no-one report this? --- .github/workflows/build.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72f4637..b56b1cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: runs-on: macos-10.15 strategy: matrix: - python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ] + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 @@ -52,7 +52,7 @@ jobs: python -m pip install --upgrade pip pip3 install cffi pip3 install wheel - python setup.py bdist_wheel --plat-name macosx_10_15_x86_64 --py-limited-api=cp37 + python setup.py bdist_wheel --plat-name macosx_10_15_x86_64 - name: Upload build Artifact wheel uses: actions/upload-artifact@v2.2.4 @@ -64,7 +64,7 @@ jobs: runs-on: macos-12 strategy: matrix: - python-version: ['3.10.5'] + python-version: ['3.10', '3.11.0-alpha - 3.11.0' ] # Requires universal2 build of python, which we get if we ask for 3.10.5 x86! Pypy not available in universal2 steps: - uses: actions/checkout@v2 @@ -149,8 +149,7 @@ jobs: python -m pip install --upgrade pip pip3 install cffi pip3 install wheel - python setup.py bdist_wheel --plat-name macosx_11_0_arm64 --py-limited-api=cp37 - + python setup.py bdist_wheel --plat-name macosx_11_0_arm64 - name: Upload build Artifact wheel uses: actions/upload-artifact@v2.2.4 @@ -166,7 +165,7 @@ jobs: # You can use PyPy versions in python-version. # For example, pypy2 and pypy3 matrix: - python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ] + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 @@ -201,7 +200,7 @@ jobs: python -m pip install --upgrade pip pip3 install cffi pip3 install wheel - python setup.py bdist_wheel --plat-name manylinux2014_x86_64 --py-limited-api=cp37 + python setup.py bdist_wheel --plat-name manylinux2014_x86_64 - name: Upload build Artifact wheel uses: actions/upload-artifact@v2.2.4 @@ -233,7 +232,7 @@ jobs: - name: Build raylib-python-cffi run: | - python3 setup.py bdist_wheel --py-limited-api=cp37 + python3 setup.py bdist_wheel - name: Upload build Artifact wheel uses: actions/upload-artifact@v2.2.4 @@ -248,7 +247,7 @@ jobs: # You can use PyPy versions in python-version. # For example, pypy2 and pypy3 matrix: - python-version: [ '3.7', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ] + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ] steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 @@ -286,7 +285,7 @@ jobs: del raylib\dynamic\*.dll >nul 2>&1 del raylib\dynamic\*.dylib >nul 2>&1 del raylib\dynamic\32bit\* >nul 2>&1 - python setup.py bdist_wheel --py-limited-api=cp37 + python setup.py bdist_wheel shell: cmd - name: Upload build Artifact wheel @@ -319,7 +318,7 @@ jobs: cd raylib-c mkdir build cd build - cmake -DBUILD_EXAMPLES=off -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release .. + cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release .. make -j2 sudo make install - name: Copy extras