Skip to content

Commit 12bc7ab

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! squash! fixup! Fix CI regressions
1 parent 135955d commit 12bc7ab

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265
systemd-devel mesa-libGL-devel libxkbcommon-devel mesa-libGLES-devel \
266266
mesa-libEGL-devel vulkan-devel wayland-devel wayland-protocols-devel \
267267
libdrm-devel mesa-libgbm-devel libusb-devel
268-
git clone https://github.com/libsdl-org/SDL.git sdl_repo &&
268+
git clone --depth 1 --branch release-3.2.10 https://github.com/libsdl-org/SDL.git sdl_repo &&
269269
cmake -S sdl_repo -B sdl_build &&
270270
cmake --build sdl_build --config Release &&
271271
cmake --install sdl_build --config Release --prefix /

build_sdl.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,13 @@ def get_cdef() -> tuple[str, dict[str, str]]:
302302
parser.add_path(temp_dir)
303303
parser.add_path(SDL_INCLUDE)
304304
if Path(SDL_INCLUDE, "../Headers/SDL.h").exists(): # Using MacOS dmg archive
305-
for file in SDL_INCLUDE.glob("SDL*.h"):
306-
if file.name == "SDL_oldnames.h":
307-
continue
308-
shutil.copyfile(file, fake_header_dir / file.name)
305+
fake_sdl_dir = Path(SDL_INCLUDE, "SDL3")
306+
if not fake_sdl_dir.exists():
307+
fake_sdl_dir.mkdir(exist_ok=False)
308+
for file in SDL_INCLUDE.glob("SDL*.h"):
309+
if file.name == "SDL_oldnames.h":
310+
continue
311+
shutil.copyfile(file, fake_header_dir / file.name)
309312
else: # Regular path
310313
assert Path(SDL_INCLUDE, "SDL3/SDL.h").exists(), SDL_INCLUDE
311314
parser.parse(

0 commit comments

Comments
 (0)