From 31270d40277add567dfbb17e950852af44b13eff Mon Sep 17 00:00:00 2001 From: ExPikaPaka Date: Wed, 1 Jul 2026 08:50:58 +0200 Subject: [PATCH] Fix build for windows arm64 --- .github/workflows/build_orca.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index 30001e3673..e58e6a530c 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -353,14 +353,15 @@ jobs: if: runner.os == 'Windows' shell: pwsh run: | - $tool = Get-ChildItem -Recurse -Path build -Filter "generate_system_cache.exe" | Select-Object -First 1 - if (-not $tool) { Write-Error "generate_system_cache.exe not found in build tree"; exit 1 } - $profiles = Get-ChildItem -Recurse -Path build -Directory -Filter profiles | + $buildDir = $env:BUILD_DIR + $tool = Get-ChildItem -Recurse -Path $buildDir -Filter "generate_system_cache.exe" | Select-Object -First 1 + if (-not $tool) { Write-Error "generate_system_cache.exe not found in $buildDir"; exit 1 } + $profiles = Get-ChildItem -Recurse -Path $buildDir -Directory -Filter profiles | Where-Object { $_.FullName -match 'resources' } | Select-Object -First 1 - if (-not $profiles) { Write-Error "profiles directory not found in build tree"; exit 1 } + if (-not $profiles) { Write-Error "profiles directory not found in $buildDir"; exit 1 } # Add the slicer's runtime DLL directory to PATH so generate_system_cache.exe # can resolve its dependencies (TKernel.dll etc.) without a full install step. - $dll_dir = Get-ChildItem -Recurse -Path build -Filter "TKernel.dll" | + $dll_dir = Get-ChildItem -Recurse -Path $buildDir -Filter "TKernel.dll" | Select-Object -First 1 | Select-Object -ExpandProperty DirectoryName if ($dll_dir) { $env:PATH = "$dll_dir;$env:PATH" } & $tool.FullName --path $profiles.FullName --log_level 2