Skip to content

Commit 6cd3e05

Browse files
try to fix windows and source builds
1 parent 775d2da commit 6cd3e05

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,17 @@ jobs:
174174
# The target architecture (x86, x64) of the Python interpreter.
175175
architecture: x64
176176

177+
- name: Build raylib
178+
run: |
179+
sudo apt update
180+
sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
181+
cd raylib-c
182+
mkdir build
183+
cd build
184+
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
185+
make -j2
186+
sudo make install
187+
177188
- name: Build raylib-python-cffi
178189
run: |
179190
python -m pip install --upgrade pip

raylib/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def build_linux():
7979

8080
def build_windows():
8181
print("BUILDING FOR WINDOWS")
82-
ffibuilder.cdef(mangle("raylib/raylib.h").replace('bool', 'int'))
82+
ffibuilder.cdef(mangle("raylib/raylib.h"))
8383
ffibuilder.cdef(open("raylib/raygui_modified.h").read().replace('RAYGUIDEF ', '').replace('bool', 'int'))
8484
ffibuilder.cdef(open("raylib/physac_modified.h").read().replace('PHYSACDEF ', '').replace('bool', 'int'))
8585
ffibuilder.set_source("raylib._raylib_cffi",

0 commit comments

Comments
 (0)