File tree Expand file tree Collapse file tree 7 files changed +25
-21
lines changed Expand file tree Collapse file tree 7 files changed +25
-21
lines changed Original file line number Diff line number Diff line change 18
18
run : |
19
19
Set-Service -Name "postgresql-x64-14" -StartupType manual -Status Running
20
20
pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "ALTER USER postgres WITH PASSWORD 'Password12!';" }
21
- pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "DROP SCHEMA IF EXISTS test;" }
22
- pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "CREATE SCHEMA IF NOT EXISTS test;" }
23
- - name : Setup
21
+ pwsh -Command { $env:PGPASSWORD="Password12!"; & "$env:PGBIN\psql" -U postgres -c "DROP SCHEMA IF EXISTS test;" }
22
+ pwsh -Command { $env:PGPASSWORD="Password12!"; & "$env:PGBIN\psql" -U postgres -c "CREATE SCHEMA IF NOT EXISTS test;" }
Original file line number Diff line number Diff line change @@ -883,6 +883,8 @@ jobs:
883
883
ref : ${{ matrix.branch.ref }}
884
884
- name : Setup
885
885
uses : ./.github/actions/setup-windows
886
+ - name : Environment
887
+ run : ./scripts/windows/env.bat
886
888
- name : Build
887
889
run : ./scripts/windows/build.bat
888
890
- name : Test
Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ jobs:
188
188
uses : actions/checkout@v4
189
189
- name : Setup
190
190
uses : ./.github/actions/setup-windows
191
+ - name : Environment
192
+ run : ./scripts/windows/env.bat
191
193
- name : Build
192
194
run : ./scripts/windows/build.bat
193
195
- name : Test
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if not exist "%SDK_RUNNER%" (
41
41
exit /b 3
42
42
)
43
43
44
- cmd /c %SDK_RUNNER% -t .github\scripts\windows \build_task.bat
44
+ cmd /c %SDK_RUNNER% -t %WIN_SCRIPTS_DIR% \build_task.bat
45
45
if %errorlevel% neq 0 exit /b 3
46
46
47
47
exit /b 0
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if %errorlevel% neq 0 exit /b 3
10
10
del /f /q C:\Windows\System32\libssl-1_1-x64.dll > NUL 2 > NUL
11
11
if %errorlevel% neq 0 exit /b 3
12
12
13
- call %~dp0 find -target-branch.bat
13
+ call %WIN_SCRIPTS_DIR% \find -target-branch.bat
14
14
set STABILITY = staging
15
15
set DEPS_DIR = %PHP_BUILD_CACHE_BASE_DIR% \deps-%BRANCH% -%PHP_SDK_VS% -%PHP_SDK_ARCH%
16
16
rem SDK is cached, deps info is cached as well
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
- set PHP_BUILD_CACHE_BASE_DIR = C:\build-cache
4
- set PHP_BUILD_OBJ_DIR = C:\obj
5
- set PHP_BUILD_CACHE_SDK_DIR = C:\build-cache\sdk
6
- set PHP_BUILD_SDK_BRANCH = php_src-2.2.1-dev
7
- set PHP_BUILD_CRT = vs16
8
- set PLATFORM = x64
9
- set THREAD_SAFE = 1
10
- set INTRINSICS = AVX2
11
- set PARALLEL = -j2
12
- set OPCACHE = 1
3
+ setx WIN_SCRIPTS_DIR %~dp0
4
+ setx SCRIPT_DRIVE %~d0
13
5
14
- set CI = True
15
- set BRANCH = master
6
+ if /i " %LOCALBUILD% " equ " True" (
7
+ setx PHP_BUILD_CACHE_BASE_DIR C:\build-cache
8
+ setx PHP_BUILD_OBJ_DIR C:\obj
9
+ setx PHP_BUILD_CACHE_SDK_DIR C:\build-cache\sdk
10
+ setx PHP_BUILD_SDK_BRANCH php_src-2.2.1-dev
11
+ setx PHP_BUILD_CRT vs16
12
+ setx PLATFORM x64
13
+ setx THREAD_SAFE 1
14
+ setx INTRINSICS AVX2
15
+ setx PARALLEL -j2
16
+ setx OPCACHE 1
16
17
18
+ setx CI True
19
+ setx BRANCH master
20
+ )
Original file line number Diff line number Diff line change @@ -3,17 +3,14 @@ if /i "%CI%" neq "True" (
3
3
exit /b 3
4
4
)
5
5
6
- set WIN_SCRIPTS_DIR = %~dp0
7
- set SCRIPT_DRIVE = %~d0
8
-
9
6
set SDK_RUNNER = %PHP_BUILD_CACHE_SDK_DIR% \phpsdk-%PHP_BUILD_CRT% -%PLATFORM% .bat
10
7
rem SDK_RUNNER=%PHP_BUILD_CACHE_SDK_DIR%\phpsdk-%PHP_BUILD_CRT%-%PLATFORM%.bat
11
8
if not exist " %SDK_RUNNER% " (
12
9
echo " %SDK_RUNNER% " doesn't exist
13
10
exit /b 3
14
11
)
15
12
16
- cmd /c %SDK_RUNNER% -t .github\scripts\windows \test_task.bat
13
+ cmd /c %SDK_RUNNER% -t %WIN_SCRIPTS_DIR% \test_task.bat
17
14
if %errorlevel% neq 0 exit /b 3
18
15
19
16
exit /b 0
You can’t perform that action at this time.
0 commit comments