File tree 3 files changed +60
-26
lines changed
3 files changed +60
-26
lines changed Original file line number Diff line number Diff line change
1
+ name : Setup
2
+ runs :
3
+ using : composite
4
+ steps :
5
+ - name : Setup MySQL
6
+ shell : pwsh
7
+ run : |
8
+ choco install mysql -y --no-progress --params="/port:3306"
9
+ mysql.exe --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
10
+ - name : Setup MSSQL
11
+ shell : pwsh
12
+ run : |
13
+ choco install sql-server-express -y --no-progress --install-arguments="/SECURITYMODE=SQL /SAPWD=Password12!"
14
+ - name : Setup PostgreSQL
15
+ shell : pwsh
16
+ run : |
17
+ Set-Service -Name "postgresql-x64-14" -StartupType manual -Status Running
18
+ pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "ALTER USER postgres WITH PASSWORD 'Password12!';" }
Original file line number Diff line number Diff line change @@ -654,3 +654,38 @@ jobs:
654
654
uses : ./.github/actions/notify-slack
655
655
with :
656
656
token : ${{ secrets.ACTION_MONITORING_SLACK }}
657
+ WINDOWS :
658
+ strategy :
659
+ fail-fast : false
660
+ matrix :
661
+ include :
662
+ - x64 : true
663
+ zts : true
664
+ opcache : true
665
+ - x64 : false
666
+ zts : false
667
+ opcache : false
668
+ name : " WINDOWS_${{ matrix.x64 && 'X64' || 'X86' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
669
+ runs-on : windows-2019
670
+ env :
671
+ PHP_BUILD_CACHE_BASE_DIR : C:\build-cache
672
+ PHP_BUILD_OBJ_DIR : C:\obj
673
+ PHP_BUILD_CACHE_SDK_DIR : C:\build-cache\sdk
674
+ PHP_BUILD_SDK_BRANCH : php-sdk-2.2.0
675
+ PHP_BUILD_CRT : vs16
676
+ PLATFORM : ${{ matrix.x64 && 'x64' || 'x86' }}
677
+ THREAD_SAFE : " ${{ matrix.zts && '1' || '0' }}"
678
+ INTRINSICS : " ${{ matrix.zts && 'AVX2' || '' }}"
679
+ PARALLEL : -j2
680
+ OPCACHE : " ${{ matrix.opcache && '1' || '0' }}"
681
+ steps :
682
+ - name : git config
683
+ run : git config --global core.autocrlf false && git config --global core.eol lf
684
+ - name : git checkout
685
+ uses : actions/checkout@v3
686
+ - name : Setup
687
+ uses : ./.github/actions/setup-windows
688
+ - name : Build
689
+ run : .github/scripts/windows/build.bat
690
+ - name : Test
691
+ run : .github/scripts/windows/test.bat
Original file line number Diff line number Diff line change @@ -159,45 +159,26 @@ jobs:
159
159
- name : Verify generated files are up to date
160
160
uses : ./.github/actions/verify-generated-files
161
161
WINDOWS :
162
- strategy :
163
- fail-fast : false
164
- matrix :
165
- include :
166
- - x64 : true
167
- zts : false
168
- opcache : true
169
- - x64 : false
170
- zts : true
171
- opcache : false
172
- name : " WINDOWS_${{ matrix.x64 && 'X64' || 'X86' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
162
+ name : WINDOWS_X64_ZTS
173
163
runs-on : windows-2019
174
164
env :
175
165
PHP_BUILD_CACHE_BASE_DIR : C:\build-cache
176
166
PHP_BUILD_OBJ_DIR : C:\obj
177
167
PHP_BUILD_CACHE_SDK_DIR : C:\build-cache\sdk
178
168
PHP_BUILD_SDK_BRANCH : php-sdk-2.2.0
179
169
PHP_BUILD_CRT : vs16
180
- PLATFORM : ${{ matrix. x64 && 'x64' || 'x86' }}
181
- THREAD_SAFE : " ${{ matrix.zts && '1' || '0' }} "
182
- INTRINSICS : " ${{ matrix.zts && ' AVX2' || '' }} "
170
+ PLATFORM : x64
171
+ THREAD_SAFE : " 1 "
172
+ INTRINSICS : AVX2
183
173
PARALLEL : -j2
184
- OPCACHE : " ${{ matrix.opcache && '1' || '0' }} "
174
+ OPCACHE : " 1 "
185
175
steps :
186
176
- name : git config
187
177
run : git config --global core.autocrlf false && git config --global core.eol lf
188
178
- name : git checkout
189
179
uses : actions/checkout@v3
190
- - name : Setup MySQL
191
- run : |
192
- choco install mysql -y --no-progress --params="/port:3306"
193
- mysql.exe --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
194
- - name : Setup MSSQL
195
- run : |
196
- choco install sql-server-express -y --no-progress --install-arguments="/SECURITYMODE=SQL /SAPWD=Password12!"
197
- - name : Setup PostgreSQL
198
- run : |
199
- Set-Service -Name "postgresql-x64-14" -StartupType manual -Status Running
200
- pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "ALTER USER postgres WITH PASSWORD 'Password12!';" }
180
+ - name : Setup
181
+ uses : ./.github/actions/setup-windows
201
182
- name : Build
202
183
run : .github/scripts/windows/build.bat
203
184
- name : Test
You can’t perform that action at this time.
0 commit comments