From afa5ae94639437fc685ecc5e78baf7abf8373d51 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 15 Oct 2024 18:18:11 +0100 Subject: [PATCH] try --- .github/workflows/build.yml | 4 ++-- raylib/build.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54855fb..3b28688 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -289,7 +289,7 @@ jobs: cd raylib-c mkdir build cd build - cmake -DPLATFORM=${{ matrix.raylib_platform }} -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND .. + cmake -DPLATFORM=${{ matrix.raylib-platform }} -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND .. make -j2 sudo make install - name: Copy extras @@ -303,7 +303,7 @@ jobs: pip3 install "cffi>=1.17.1" pip3 install wheel pip3 install setuptools - python setup.py bdist_wheel --plat-name manylinux2014_x86_64 + RAYLIB_PLATFORM=${{ matrix.raylib-platform }} python setup.py bdist_wheel --plat-name manylinux2014_x86_64 - name: Upload build Artifact wheel uses: actions/upload-artifact@v3.2.1 diff --git a/raylib/build.py b/raylib/build.py index 52454e6..8741b9a 100644 --- a/raylib/build.py +++ b/raylib/build.py @@ -25,8 +25,8 @@ import sys import subprocess import time - -USE_SDL2 = True +RAYLIB_PLATFORM = os.getenv("RAYLIB_PLATFORM", "Desktop") +USE_SDL2 = True if RAYLIB_PLATFORM == "SDL" else False def check_raylib_installed(): return subprocess.run(['pkg-config', '--exists', 'raylib'], text=True, stdout=subprocess.PIPE).returncode == 0