Skip to content

Commit 60d713c

Browse files
Maybe some day
1 parent 7d4e037 commit 60d713c

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ jobs:
7474
run: |
7575
# Download and extract Embree (simplified approach)
7676
Invoke-WebRequest -Uri "${{ matrix.embree_url }}" -OutFile "embree.zip"
77+
Write-Host "Extracting embree.zip..."
7778
Expand-Archive -Path "embree.zip" -DestinationPath "." -Force
79+
Write-Host "Contents after embree extraction:"
80+
Get-ChildItem -Directory | Where-Object { $_.Name -like "*embree*" } | Select-Object Name
7881
7982
# Download and extract OIDN (preserve CMakeLists.txt)
8083
Invoke-WebRequest -Uri "https://github.com/RenderKit/oidn/releases/download/v2.3.3/oidn-2.3.3.x64.windows.zip" -OutFile "oidn.zip"
@@ -160,8 +163,15 @@ jobs:
160163
run: |
161164
New-Item -ItemType Directory -Path "build" -Force | Out-Null
162165
Set-Location build
163-
$embreeLocation = Resolve-Path "$PWD/../${{ matrix.embree_dir }}"
164-
Write-Host "Setting EMBREE_LOCATION to: $embreeLocation"
166+
# Find the actual embree directory that was extracted
167+
$embreeDirs = Get-ChildItem -Path "$PWD/.." -Directory | Where-Object { $_.Name -like "*embree*" }
168+
if ($embreeDirs) {
169+
$embreeLocation = $embreeDirs[0].FullName
170+
Write-Host "Found embree directory: $embreeLocation"
171+
} else {
172+
Write-Host "Error: No embree directory found!"
173+
exit 1
174+
}
165175
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DEMBREE_LOCATION="$embreeLocation"
166176
167177
- name: Configure CMake (macOS)

0 commit comments

Comments
 (0)