Replay the exact compiled app with the corrected Windows path

This commit is contained in:
Codex
2026-12-03 07:22:37 +01:00
parent 23ea9ecab6
commit 9739cc2319
2 changed files with 59 additions and 1 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ $env:VECTORCRAFT_CAPTURE_QUEUE = $queue
'@
$native = $native.Remove($beginCall, $endCall - $beginCall).Insert($beginCall, $appCall).Replace($cases, $replacement)
$exe = Join-Path $env:CARGO_TARGET_DIR 'debug ectorcraft.exe'
$exe = [IO.Path]::Combine($env:CARGO_TARGET_DIR, 'debug', 'vectorcraft.exe')
if (!(Test-Path -LiteralPath $exe -PathType Leaf)) { throw "The captured app executable is missing at $exe" }
$file = Join-Path $env:RUNNER_TEMP 'vectorcraft-explicit-job-options.ps1'
[IO.File]::WriteAllText($file, $native)
& $file
@@ -0,0 +1,57 @@
name: Replay the compiled VectorCraft job options capture
on:
push:
branches: [verify/vectorcraft-job-options-replay-4859]
permissions:
contents: read
actions: read
jobs:
windows:
runs-on: windows-2025
timeout-minutes: 18
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: storytold/pdfcraft
ref: df3f32dfb4c4ca711b7b4fa41cd67a5fd46af50d
path: fixture
persist-credentials: false
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
with:
github-token: ${{ github.token }}
run-id: 47046619520
name: vectorcraft-explicit-job-executable
path: replay/debug
- name: Replay the exact compiled app and its private worker
shell: pwsh
run: |
$env:CARGO_TARGET_DIR = (Resolve-Path -LiteralPath 'replay').Path
Get-FileHash -LiteralPath 'replay/debug/vectorcraft.exe' -Algorithm SHA256
./.github/qa/prepare-explicit-job-capture.ps1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
if: always()
with:
name: vectorcraft-explicit-job-captures
path: captured-postscript/
if-no-files-found: warn
retention-days: 7
inspect:
needs: windows
runs-on: ubuntu-24.04
timeout-minutes: 12
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
with:
name: vectorcraft-explicit-job-captures
path: prints
- uses: storytold/craft-common-actions/actions/install-apt-packages@58848078cd09e3ca182891a8b76ee979f1eb6e1c
with:
packages: ghostscript python3-pil
- name: Inspect the native capture on both queues
run: /usr/bin/python3 .github/qa/inspect-explicit-job-capture.py prints