Skip to content

Commit 72607cd

Browse files
More GitHub
1 parent 4da62ce commit 72607cd

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,17 @@ jobs:
7777
Expand-Archive -Path "embree.zip" -DestinationPath "."
7878
$embreePath = "${{ matrix.embree_dir }}"
7979
80-
# Add to PATH for CMake to find it
81-
echo "$PWD/$embreePath/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
82-
echo "EMBREE_LOCATION=$PWD/$embreePath" | Out-File -FilePath $env:GITHUB_ENV -Append
80+
# Clean existing Embree installation
81+
if (Test-Path "thirdparty/embree") {
82+
Remove-Item -Path "thirdparty/embree" -Recurse -Force
83+
}
84+
85+
# Move extracted Embree directory to thirdparty
86+
Move-Item -Path $embreePath -Destination "thirdparty/embree" -Force
87+
88+
# Add to PATH and set EMBREE_LOCATION
89+
echo "$PWD/thirdparty/embree/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
90+
echo "EMBREE_LOCATION=$PWD/thirdparty/embree" | Out-File -FilePath $env:GITHUB_ENV -Append
8391
8492
# Download and extract OIDN for Windows (v2.3.3 from RenderKit)
8593
Invoke-WebRequest -Uri "https://github.com/RenderKit/oidn/releases/download/v2.3.3/oidn-2.3.3.x64.windows.zip" -OutFile "oidn.zip"

0 commit comments

Comments
 (0)