Skip to content

Commit

Permalink
Fix oci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored Nov 24, 2021
1 parent dbdb32b commit 0a41a03
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/php80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-sdk-$suffix.zip -OutFile $oci_dir\sdk.zip
Expand-Archive -Path $oci_dir\instantclient.zip -DestinationPath $oci_dir -Force
Expand-Archive -Path $oci_dir\sdk.zip -DestinationPath $oci_dir -Force
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_12_1
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_19_9
- name: Patch Tools
run: |
$git_location="C:\Program Files\Git\cmd\git.exe"
Expand All @@ -79,6 +79,8 @@ 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 "instantclient_12_1", "instantclient_19_9") | Set-Content -Path $config_location
((Get-Content -path $config_location -Raw) -replace "oci8-12c", "oci8-19") | Set-Content -Path $config_location
- name: build PHP
run: |
C:\php-snap-build\php-sdk\bin\vswhere
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/php81.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-sdk-$suffix.zip -OutFile $oci_dir\sdk.zip
Expand-Archive -Path $oci_dir\instantclient.zip -DestinationPath $oci_dir -Force
Expand-Archive -Path $oci_dir\sdk.zip -DestinationPath $oci_dir -Force
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_12_1
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_19_9
- name: Patch Tools
run: |
$git_location="C:\Program Files\Git\cmd\git.exe"
Expand All @@ -79,6 +79,8 @@ 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 "instantclient_12_1", "instantclient_19_9") | Set-Content -Path $config_location
((Get-Content -path $config_location -Raw) -replace "oci8-12c", "oci8-19") | Set-Content -Path $config_location
- name: build PHP
run: |
C:\php-snap-build\php-sdk\bin\vswhere
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/phpmaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-sdk-$suffix.zip -OutFile $oci_dir\sdk.zip
Expand-Archive -Path $oci_dir\instantclient.zip -DestinationPath $oci_dir -Force
Expand-Archive -Path $oci_dir\sdk.zip -DestinationPath $oci_dir -Force
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_12_1
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_19_9
- name: Patch Tools
run: |
$git_location="C:\Program Files\Git\cmd\git.exe"
Expand All @@ -79,6 +79,8 @@ 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 "instantclient_12_1", "instantclient_19_9") | Set-Content -Path $config_location
((Get-Content -path $config_location -Raw) -replace "oci8-12c", "oci8-19") | Set-Content -Path $config_location
- name: build PHP
run: |
C:\php-snap-build\php-sdk\bin\vswhere
Expand Down
2 changes: 1 addition & 1 deletion scripts/Get-Php.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $semver = Invoke-RestMethod https://raw.githubusercontent.com/php/php-src/$branc
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/shivammathur/php-builder-windows/releases/download/php$Version/php-$semver$ts-Win32-vs16-$Architecture.zip" -OutFile $Path\master.zip
Expand-Archive -Path $Path\master.zip -DestinationPath $Path -Force
Copy-Item $Path\php.ini-production -Destination $Path\php.ini
Move-Item -Path $Path\ext\php_oci8_12c.dll -Destination $Path\ext\php_oci8.dll -Force
Move-Item -Path $Path\ext\php_oci8*.dll -Destination $Path\ext\php_oci8.dll -Force
$ts = 'nts'
if($ThreadSafe) {
$ts = 'ts'
Expand Down
2 changes: 1 addition & 1 deletion scripts/Get-PhpNightly.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if($Version -match '8.[0-1]') {
Expand-Archive -Path $Path\master.zip -DestinationPath $Path -Force
Copy-Item $Path\php.ini-production -Destination $Path\php.ini
}
Move-Item -Path $Path\ext\php_oci8_12c.dll -Destination $Path\ext\php_oci8.dll -Force
Move-Item -Path $Path\ext\php_oci8*.dll -Destination $Path\ext\php_oci8.dll -Force
$ts = 'nts'
if($ThreadSafe) {
$ts = 'ts'
Expand Down

0 comments on commit 0a41a03

Please sign in to comment.