Skip to content

Commit da2cff2

Browse files
GitHUB
1 parent 504aaf9 commit da2cff2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)