mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-29 05:42:33 +00:00
Fix build for windows arm64
This commit is contained in:
11
.github/workflows/build_orca.yml
vendored
11
.github/workflows/build_orca.yml
vendored
@@ -353,14 +353,15 @@ jobs:
|
|||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$tool = Get-ChildItem -Recurse -Path build -Filter "generate_system_cache.exe" | Select-Object -First 1
|
$buildDir = $env:BUILD_DIR
|
||||||
if (-not $tool) { Write-Error "generate_system_cache.exe not found in build tree"; exit 1 }
|
$tool = Get-ChildItem -Recurse -Path $buildDir -Filter "generate_system_cache.exe" | Select-Object -First 1
|
||||||
$profiles = Get-ChildItem -Recurse -Path build -Directory -Filter profiles |
|
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
|
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
|
# 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.
|
# 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
|
Select-Object -First 1 | Select-Object -ExpandProperty DirectoryName
|
||||||
if ($dll_dir) { $env:PATH = "$dll_dir;$env:PATH" }
|
if ($dll_dir) { $env:PATH = "$dll_dir;$env:PATH" }
|
||||||
& $tool.FullName --path $profiles.FullName --log_level 2
|
& $tool.FullName --path $profiles.FullName --log_level 2
|
||||||
|
|||||||
Reference in New Issue
Block a user