This commit is contained in:
Richard Smith 2024-10-15 19:12:08 +01:00
parent e692b7ce99
commit 1f172355d3
2 changed files with 17 additions and 5 deletions

View file

@ -58,9 +58,17 @@ mac_task:
- cd raylib-c
- mkdir build
- cd build
- cmake -DPLATFORM=SDL -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
- cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- sudo make install
build_raylib_again_script:
- git submodule update --init --recursive
- cd raylib-c
- mkdir build
- cd build
- cmake -DPLATFORM=SDL -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- sudo cp raylib/libraylib.a /usr/local/lib/libraylib.a
build_script:
- sudo cp -r raylib-c/src/external/glfw/include/GLFW /usr/local/include/
- sudo cp physac/src/physac.h /usr/local/include/
@ -69,6 +77,6 @@ mac_task:
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages cffi
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages setuptools
- /opt/homebrew/bin/python${PY_VER} -m pip install --break-system-packages wheel
- /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
- RAYLIB_PLATFORM=SDL /opt/homebrew/bin/python${PY_VER} setup.py bdist_wheel
artifacts:
path: "dist/*"

View file

@ -258,6 +258,8 @@ jobs:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
raylib-platform: ['Desktop', 'SDL']
steps:
- env:
RAYLIB_PLATFORM: ${{ matrix.raylib-platform }}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
@ -305,7 +307,7 @@ jobs:
pip3 install "cffi>=1.17.1"
pip3 install wheel
pip3 install setuptools
RAYLIB_PLATFORM=${{ matrix.raylib-platform }} python setup.py bdist_wheel --plat-name manylinux2014_x86_64
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
- name: Upload build Artifact wheel
uses: actions/upload-artifact@v3.2.1
@ -326,7 +328,9 @@ jobs:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10' ]
raylib-platform: ['Desktop', 'SDL']
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- env:
RAYLIB_PLATFORM: ${{ matrix.raylib-platform }}
- uses: actions/checkout@v2
with:
submodules: recursive
@ -377,7 +381,7 @@ jobs:
del raylib\dynamic\*.dll >nul 2>&1
del raylib\dynamic\*.dylib >nul 2>&1
del raylib\dynamic\32bit\* >nul 2>&1
RAYLIB_PLATFORM=${{ matrix.raylib-platform }} python setup.py bdist_wheel
python setup.py bdist_wheel
shell: cmd
- name: Upload build Artifact wheel