File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,10 +78,15 @@ jobs:
7878 # Set EMBREE_LOCATION to the extracted directory
7979 echo "EMBREE_LOCATION=$PWD/${{ matrix.embree_dir }}" | Out-File -FilePath $env:GITHUB_ENV -Append
8080
81- # Download and extract OIDN (extract to temp, then move contents to thirdparty/oidn )
81+ # Download and extract OIDN (clean install to temp, then move)
8282 Invoke-WebRequest -Uri "https://github.com/RenderKit/oidn/releases/download/v2.3.3/oidn-2.3.3.x64.windows.zip" -OutFile "oidn.zip"
8383 Expand-Archive -Path "oidn.zip" -DestinationPath "oidn_temp" -Force
84+ # Clean existing OIDN installation
85+ if (Test-Path "thirdparty/oidn") {
86+ Remove-Item -Path "thirdparty/oidn" -Recurse -Force
87+ }
8488 # Move contents from the extracted directory to thirdparty/oidn
89+ New-Item -ItemType Directory -Path "thirdparty/oidn" -Force | Out-Null
8590 if (Test-Path "oidn_temp/oidn-2.3.3.x64.windows") {
8691 Move-Item -Path "oidn_temp/oidn-2.3.3.x64.windows/*" -Destination "thirdparty/oidn" -Force
8792 } else {
You can’t perform that action at this time.
0 commit comments