diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 071a70ca15..cd03cf1f66 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -69,9 +69,14 @@ jobs: # Download Python (Windows Embeddable) wget https://www.python.org/ftp/python/3.12.3/python-3.12.3-embed-amd64.zip unzip -q python-3.12.3-embed-amd64.zip -d python + # Enable site-packages in embeddable python (needed for some scripts) + sed -i 's/#import site/import site/' python/python312._pth - name: Setup Environment and Scripts run: | + # Patch libusb CMakeLists.txt to use native CMake build instead of autoconf on MinGW + sed -i 's/if (MINGW OR PLATFORM_LINUX OR APPLE)/if (PLATFORM_LINUX OR APPLE)/' externals/libusb/CMakeLists.txt + # Create configure script echo "@echo off" > configure.bat echo "set PATH=tools\llvm\bin;tools\cmake\bin;tools\ninja;tools\python;tools\utils;%PATH%" >> configure.bat