Skip to content

Commit 2ea9699

Browse files
committed
Improve workflow
1 parent 56f0d97 commit 2ea9699

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/php80.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build:
1010
if: "!contains(github.event.head_commit.message, 'skip-build')"
11-
runs-on: windows-latest
11+
runs-on: windows-2019
1212
strategy:
1313
fail-fast: false
1414
matrix:
@@ -81,9 +81,9 @@ jobs:
8181
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
8282
- name: build PHP
8383
run: |
84+
C:\php-snap-build\php-sdk\bin\vswhere
8485
$ErrorActionPreference = "Stop"
8586
& 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 }}"
86-
Get-ChildItem C:/php-snap-build/${{ matrix.target }} -Recurse
8787
- name: Collect Artifacts
8888
run: |
8989
New-Item -ItemType "directory" -Path builds

.github/workflows/phpmaster.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build:
1010
if: "!contains(github.event.head_commit.message, 'skip-build')"
11-
runs-on: windows-latest
11+
runs-on: windows-2019
1212
strategy:
1313
fail-fast: false
1414
matrix:
@@ -81,9 +81,9 @@ jobs:
8181
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
8282
- name: build PHP
8383
run: |
84+
C:\php-snap-build\php-sdk\bin\vswhere
8485
$ErrorActionPreference = "Stop"
8586
& 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 }}"
86-
Get-ChildItem C:/php-snap-build/${{ matrix.target }} -Recurse
8787
- name: Collect Artifacts
8888
run: |
8989
$php_version = Invoke-RestMethod https://raw.githubusercontent.com/php/php-src/master/main/php_version.h | Where-Object { $_ -match 'PHP_VERSION "(.*)"' } | Foreach-Object {$Matches[1]}

0 commit comments

Comments
 (0)