Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyaspimpalgaonkar committed Oct 17, 2024
1 parent add9550 commit fcd35a4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/actions/setup-postgres-ext/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,28 @@ runs:
choco install visualstudio2022buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --passive --norestart"
# Create the Temp directory if it doesn't exist
mkdir -Force "C:\Users\RUNNER~1\AppData\Local\Temp"
cmd.exe /c "mkdir -Force C:\Users\RUNNER~1\AppData\Local\Temp"
# Set up environment for building pgvector
$vcvars64Path = "C:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
# Echo the temp directory
echo "Temp directory: $env:TEMP"
Write-Host "Temp directory: $env:TEMP"
cmd.exe /c "call `"$vcvars64Path`" && set > %temp%\vcvars.txt"
cmd.exe /c "call `"$vcvars64Path`" && set > $env:TEMP\vcvars.txt"
# Echo the content of vcvars.txt
echo "Content of vcvars.txt:"
type "$env:TEMP\vcvars.txt"
Get-Content "$env:TEMP\vcvars.txt" | ForEach-Object {
if ($_ -match "^(.*?)=(.*)$") {
Set-Content "env:\$($matches[1])" $matches[2]
}
}
# Set up environment for building pgvector
Write-Host "Temp directory 2: C:\Users\RUNNER~1\AppData\Local\Temp\vcvars.txt"
cmd.exe /c "call `"$vcvars64Path`" && set > C:\Users\RUNNER~1\AppData\Local\Temp\vcvars.txt"
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
Get-Content "C:\Users\RUNNER~1\AppData\Local\Temp\vcvars.txt" | ForEach-Object {
if ($_ -match "^(.*?)=(.*)$") {
Set-Content "env:\$($matches[1])" $matches[2]
}
Expand Down

0 comments on commit fcd35a4

Please sign in to comment.