Adjust windows build CI

This commit is contained in:
crazywhalecc 2024-10-04 18:20:25 +08:00 committed by Jerry Ma
parent c09bf1e878
commit 83ab430b9a
4 changed files with 8 additions and 4 deletions

View File

@ -156,6 +156,8 @@ jobs:
tools: pecl, composer
extensions: curl, openssl, mbstring
ini-values: memory_limit=-1
env:
phpts: nts
- name: "Cache composer packages"
id: composer-cache

View File

@ -51,10 +51,10 @@ if ($action -eq 'add-path') {
}
# get php 8.1 specific version
$API = (Invoke-WebRequest -Uri "https://www.php.net/releases/index.php?json&version=8.1") | ConvertFrom-Json
$API = (Invoke-WebRequest -Uri "https://www.php.net/releases/index.php?json&version=8.3") | ConvertFrom-Json
# php windows download
$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/php-" + $API.version + "-Win32-vs16-x64.zip"
$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/php-" + $API.version + "-nts-Win32-vs16-x64.zip"
$ComposerUrl = "https://getcomposer.org/download/latest-stable/composer.phar"
# create dir

View File

@ -48,9 +48,9 @@ SPC_SKIP_DOCTOR_CHECK_ITEMS=""
[windows]
; php-sdk-binary-tools path
PHP_SDK_PATH=${WORKING_DIR}\php-sdk-binary-tools
PHP_SDK_PATH="${WORKING_DIR}\php-sdk-binary-tools"
; upx executable path
UPX_EXEC=${PKG_ROOT_PATH}\bin\upx.exe
UPX_EXEC="${PKG_ROOT_PATH}\bin\upx.exe"
; phpmicro patches, for more info, see: https://github.com/easysoft/phpmicro/tree/master/patches
SPC_MICRO_PATCHES=static_extensions_win32,cli_checks,disable_huge_page,vcruntime140,win32,zend_stream,cli_static

View File

@ -6,6 +6,8 @@ use ZM\Logger\ConsoleLogger;
define('WORKING_DIR', getcwd());
define('ROOT_DIR', dirname(__DIR__, 2));
putenv('WORKING_DIR=' . WORKING_DIR);
putenv('ROOT_DIR=' . ROOT_DIR);
// CLI start time
define('START_TIME', microtime(true));