From 1adbb9c91ba67feb0e2e485519b1a2a7e00d9c5e Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 17 Jul 2023 21:45:01 -0400 Subject: [PATCH] Fix for windows appveyor pipeline. Use strawberry perl to run build script. --- appveyor.yml | 7 +++---- pipelines/WinAppveyorBuild.bat | 11 +++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 pipelines/WinAppveyorBuild.bat diff --git a/appveyor.yml b/appveyor.yml index febf8dbb..2ab04ea9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,7 +14,6 @@ environment: - job_name: Ubuntu appveyor_build_worker_image: Ubuntu2004 - #appveyor_build_worker_image: Ubuntu1804 - job_name: MacOS appveyor_build_worker_image: macos-bigsur @@ -27,7 +26,7 @@ for: - job_name: Windows 32 build_script: - - cmd: perl pipelines/build.pl win32 + - cmd: pipelines/WinAppveyorBuild.bat win32 - matrix: @@ -35,7 +34,7 @@ for: - job_name: Windows 64 build_script: - - cmd: perl pipelines/build.pl win64 + - cmd: pipelines/WinAppveyorBuild.bat win64 - matrix: @@ -43,7 +42,7 @@ for: - job_name: Win64 Qt build_script: - - cmd: perl pipelines/build.pl win64-QtSDL + - cmd: pipelines/WinAppveyorBuild.bat win64-QtSDL - matrix: diff --git a/pipelines/WinAppveyorBuild.bat b/pipelines/WinAppveyorBuild.bat new file mode 100644 index 00000000..1daf0fe9 --- /dev/null +++ b/pipelines/WinAppveyorBuild.bat @@ -0,0 +1,11 @@ + +set PROJECT_ROOT=%~dp0.. +set PERL=C:\Strawberry\perl\bin\perl.exe +set JOB=%1 + +echo %PERL% +echo %JOB% + +%PERL% pipelines\build.pl %JOB% + +if %ERRORLEVEL% NEQ 0 EXIT /B 1