Skip to content

Commit 86c9b8e

Browse files
committed
Exit on error
1 parent c2e58de commit 86c9b8e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/php80.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,16 @@ jobs:
7777
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
7878
- name: build PHP
7979
run: |
80+
$ErrorActionPreference = "Stop"
8081
& 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 }}"
8182
- name: Collect Artifacts
8283
run: |
8384
New-Item -ItemType "directory" -Path builds
8485
Get-ChildItem C:\php-snap-build\${{ matrix.target }}\* -Recurse -Include php-*.zip | Foreach-Object { Copy-Item -Path $_ -Destination .\builds }
8586
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+
}
8690
- name: Upload Artifact
8791
uses: actions/upload-artifact@v2
8892
with:

.github/workflows/phpmaster.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
7878
- name: build PHP
7979
run: |
80+
$ErrorActionPreference = "Stop"
8081
& 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 }}"
8182
- name: Collect Artifacts
8283
run: |
@@ -92,6 +93,9 @@ jobs:
9293
Get-ChildItem .\master *.zip | Rename-Item -NewName { $_.name -replace $php_version,"master" }
9394
}
9495
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+
}
9599
- name: Upload Artifact
96100
uses: actions/upload-artifact@v2
97101
with:

0 commit comments

Comments
 (0)