Files
pdfcraft/.github/workflows/verify-windows-postscript-capture.yml

62 lines
2.2 KiB
YAML

name: Verify Windows PostScript output
on:
push:
branches: [verify/windows-postscript-capture-4859]
permissions:
actions: read
contents: read
jobs:
capture:
runs-on: windows-2025
timeout-minutes: 12
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Fetch the previously built shared print acceptance kit
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: |
gh run download 46981594723 -R storytold/pdfcraft --name windows-copier-acceptance --dir copier-kit
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- name: Capture the numbered and selected sheets on private file ports
shell: pwsh
run: ./.github/qa/windows-postscript-capture.ps1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
if: always()
with:
name: windows-postscript-spool-output
path: captured-postscript/
if-no-files-found: warn
inspect:
if: always() && needs.capture.result != 'cancelled'
needs: capture
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: storytold/craft-libs
ref: b9c229e91bc1fd11139e93a8c738c809a09cf9af
path: shared
persist-credentials: false
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
with:
name: windows-postscript-spool-output
path: captured-postscript
- uses: storytold/craft-common-actions/actions/install-apt-packages@58848078cd09e3ca182891a8b76ee979f1eb6e1c
with:
packages: ghostscript poppler-utils
- name: Check PostScript structure and render the numbered sheets
run: python3 .github/qa/verify-windows-postscript.py
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
if: always()
with:
name: windows-postscript-verified-output
path: captured-postscript/
if-no-files-found: warn