diff --git a/.github/workflows/build-win-mac.yml b/.github/workflows/build-win-mac.yml index ee437bfc..f31cbdd0 100644 --- a/.github/workflows/build-win-mac.yml +++ b/.github/workflows/build-win-mac.yml @@ -50,6 +50,7 @@ jobs: cache: true set-env: ${{ runner.os != 'Windows' }} add-tools-to-path: ${{ runner.os != 'Windows' }} + tools: ${{ runner.os == 'Windows' && 'tools_qtcreator_gui' || '' }} version: ${{ matrix.qt_version }} aqtsource: 'git+https://github.com/miurahr/aqtinstall.git@073e34d7c2ab4ae6961ed7cca690b3abd5ba5a7e' diff --git a/scripts/build-arch.bat b/scripts/build-arch.bat index 5b306ff0..d2719cce 100644 --- a/scripts/build-arch.bat +++ b/scripts/build-arch.bat @@ -165,9 +165,30 @@ pushd %BUILD_FOLDER% if !ERRORLEVEL! NEQ 0 goto Error popd +rem Locate jom.exe or fall back to nmake.exe +where /q jom.exe +if !ERRORLEVEL! EQU 0 ( + set JOM_CMD=jom.exe +) else if exist "%QT_PATH%\..\..\..\Tools\QtCreator\bin\jom\jom.exe" ( + set JOM_CMD="%QT_PATH%\..\..\..\Tools\QtCreator\bin\jom\jom.exe" +) else if exist "%QT_PATH%\..\..\..\Tools\QtCreator\bin\jom.exe" ( + set JOM_CMD="%QT_PATH%\..\..\..\Tools\QtCreator\bin\jom.exe" +) else if exist "%QT_PATH%\..\..\..\Tools\jom\jom.exe" ( + set JOM_CMD="%QT_PATH%\..\..\..\Tools\jom\jom.exe" +) else ( + where /q nmake.exe + if !ERRORLEVEL! EQU 0 ( + echo jom.exe not found. Falling back to nmake.exe. + set JOM_CMD=nmake.exe + ) else ( + echo Unable to find jom.exe or nmake.exe! + goto Error + ) +) + echo Compiling Moonlight in %BUILD_CONFIG% configuration pushd %BUILD_FOLDER% -%SOURCE_ROOT%\scripts\jom.exe %BUILD_CONFIG% +!JOM_CMD! %BUILD_CONFIG% if !ERRORLEVEL! NEQ 0 goto Error popd diff --git a/scripts/jom.exe b/scripts/jom.exe deleted file mode 100644 index 2dcde007..00000000 Binary files a/scripts/jom.exe and /dev/null differ