mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 17:20:21 -05:00
Defer Ghostscript runtime checks to final verification.
Keep fail-fast installation checks for Ghostscript command presence, but defer executing Ghostscript until the final verification phase where full runtime dependencies and PATH are in place.
This commit is contained in:
8
.github/workflows/book-build-baremetal.yml
vendored
8
.github/workflows/book-build-baremetal.yml
vendored
@@ -617,18 +617,14 @@ jobs:
|
||||
Write-Output "📊 Ghostscript version:"
|
||||
if (Get-Command gswin64c -ErrorAction SilentlyContinue) {
|
||||
Write-Output "Resolved Ghostscript: $((Get-Command gswin64c).Source)"
|
||||
gswin64c --version
|
||||
Write-Output "✅ Ghostscript executable found (runtime check deferred to final verification)"
|
||||
} elseif (Get-Command gs -ErrorAction SilentlyContinue) {
|
||||
Write-Output "Resolved Ghostscript: $((Get-Command gs).Source)"
|
||||
gs --version
|
||||
Write-Output "✅ Ghostscript executable found (runtime check deferred to final verification)"
|
||||
} else {
|
||||
Write-Error "❌ Ghostscript executable not found (expected gswin64c or gs)"
|
||||
exit 1
|
||||
}
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Error "❌ Ghostscript verification failed with exit code $LASTEXITCODE"
|
||||
exit 1
|
||||
}
|
||||
Write-Output "✅ Ghostscript installation complete"
|
||||
|
||||
- name: 📦 Install Visual C++ Redistributable (Windows)
|
||||
|
||||
Reference in New Issue
Block a user