Skip to content

Commit

Permalink
Move back to snaps on PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 26, 2020
1 parent c9b9d08 commit 8d1e896
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/php80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
((Get-Content -path $snap_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $snap_script_location
((Get-Content -path $branch_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $branch_script_location
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
((Get-Content -path $config_location -Raw) -replace "heads/PHP-8.0", "heads/PHP-8.0.0") | Set-Content -Path $config_location
- name: build PHP
run: |
C:\php-snap-build\php-sdk\bin\vswhere
Expand Down Expand Up @@ -141,11 +140,13 @@ jobs:
run: |
set -x
curl -sLO http://dl.bintray.com/shivammathur/php/Get-PhpNightly.ps1
curl -sLO http://dl.bintray.com/shivammathur/php/Get-Php.ps1
assets=()
for asset in ./uploads/*; do
assets+=("$asset")
done
assets+=("./Get-PhpNightly.ps1")
assets+=("./Get-Php.ps1")
gh release delete "php8.0" -y || true
gh release create "php8.0" "${assets[@]}" -t "php8.0" -n "php8.0"
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/phpmaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,13 @@ jobs:
run: |
set -x
curl -sLO http://dl.bintray.com/shivammathur/php/Get-PhpNightly.ps1
curl -sLO http://dl.bintray.com/shivammathur/php/Get-Php.ps1
assets=()
for asset in ./uploads/*; do
assets+=("$asset")
done
assets+=("./Get-PhpNightly.ps1")
assets+=("./Get-Php.ps1")
gh release delete "php8.1" -y || true
gh release create "php8.1" "${assets[@]}" -t "php8.1" -n "php8.1"
env:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Following configurations are build nightly.
### PHP 8.1.0-dev/master
[https://github.com/shivammathur/php-builder-windows/releases/tag/php8.1](https://github.com/shivammathur/php-builder-windows/releases/tag/php8.1)

### PHP 8.0.0-dev
### PHP 8.0.x-dev
[https://github.com/shivammathur/php-builder-windows/releases/tag/php8.0](https://github.com/shivammathur/php-builder-windows/releases/tag/php8.0)

## Install
Expand All @@ -31,8 +31,8 @@ $version = '8.1' # Set 8.0 or 8.1
# Install
New-Item -Path $php_dir -Type Directory -Force
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/shivammathur/php-builder-windows/releases/latest/download/Get-PhpNightly.ps1 -OutFile $php_dir\Get-PhpNightly.ps1
. $php_dir\Get-PhpNightly.ps1 -Architecture $arch -ThreadSafe $ts -Path $php_dir -Version $version
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/shivammathur/php-builder-windows/releases/latest/download/Get-Php.ps1 -OutFile $php_dir\Get-Php.ps1
. $php_dir\Get-Php.ps1 -Architecture $arch -ThreadSafe $ts -Path $php_dir -Version $version
# Test
. $php_dir\php -v
Expand Down

0 comments on commit 8d1e896

Please sign in to comment.