File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,16 @@ jobs:
77
77
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
78
78
- name : build PHP
79
79
run : |
80
+ $ErrorActionPreference = "Stop"
80
81
& C:\php-snap-build\php-sdk\phpsdk-vs16-${{ matrix.arch }}.bat -t C:\php-snap-build\rmtools\bin\snapshot_task.bat --task-args "php80 ${{ matrix.config }}"
81
82
- name : Collect Artifacts
82
83
run : |
83
84
New-Item -ItemType "directory" -Path builds
84
85
Get-ChildItem C:\php-snap-build\${{ matrix.target }}\* -Recurse -Include php-*.zip | Foreach-Object { Copy-Item -Path $_ -Destination .\builds }
85
86
Copy-Item -Path C:\php-snap-build\rmtools\data\db\PHP-8.0.json -Destination .\builds\${{ matrix.config }}.json
87
+ if((Get-ChildItem .\builds\*.zip).Count -lt 5) {
88
+ exit 1
89
+ }
86
90
- name : Upload Artifact
87
91
uses : actions/upload-artifact@v2
88
92
with :
Original file line number Diff line number Diff line change 77
77
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
78
78
- name : build PHP
79
79
run : |
80
+ $ErrorActionPreference = "Stop"
80
81
& C:\php-snap-build\php-sdk\phpsdk-vs16-${{ matrix.arch }}.bat -t C:\php-snap-build\rmtools\bin\snapshot_task.bat --task-args "phpmaster ${{ matrix.config }}"
81
82
- name : Collect Artifacts
82
83
run : |
92
93
Get-ChildItem .\master *.zip | Rename-Item -NewName { $_.name -replace $php_version,"master" }
93
94
}
94
95
Get-ChildItem .\master\* -Include php-*.zip | Foreach-Object { Copy-Item -Path $_ -Destination .\builds }
96
+ if((Get-ChildItem .\builds\*.zip).Count -lt 5) {
97
+ exit 1
98
+ }
95
99
- name : Upload Artifact
96
100
uses : actions/upload-artifact@v2
97
101
with :
You can’t perform that action at this time.
0 commit comments