Use Windows host runner for manual build workflow
manual-pdf / build-manual (push) Failing after 1m30s

This commit is contained in:
2026-10-13 14:37:59 -04:00
parent b8ee292d45
commit fbc37e6dcd
2 changed files with 23 additions and 22 deletions
+18 -18
View File
@@ -10,34 +10,34 @@ on:
jobs:
build-manual:
runs-on: latex-docker
container:
image: texlive/texlive:TL2026-historic
runs-on: windows-latex-host
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Generate build metadata
shell: bash
shell: powershell
run: |
set -eu
short_sha="${GITHUB_SHA:-unknown}"
short_sha="${short_sha:0:7}"
run_number="${GITHUB_RUN_NUMBER:-0}"
run_attempt="${GITHUB_RUN_ATTEMPT:-1}"
cat > devopsBuildMetadata.tex <<EOF
\\renewcommand{\\BuildIdentifier}{+build.${run_number}.${short_sha}}
\\renewcommand{\\SourceRevision}{${short_sha}}
\\renewcommand{\\WorkflowRunNumber}{${run_number}}
\\renewcommand{\\WorkflowRunAttempt}{${run_attempt}}
EOF
$shortSha = $env:GITHUB_SHA.Substring(0, 7)
$runNumber = $env:GITHUB_RUN_NUMBER
$runAttempt = $env:GITHUB_RUN_ATTEMPT
@"
\renewcommand{\BuildIdentifier}{+build.$runNumber.$shortSha}
\renewcommand{\SourceRevision}{$shortSha}
\renewcommand{\WorkflowRunNumber}{$runNumber}
\renewcommand{\WorkflowRunAttempt}{$runAttempt}
"@ | Set-Content -Path devopsBuildMetadata.tex -Encoding ASCII
- name: Compile manual
shell: bash
shell: powershell
run: |
set -eu
latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex
test -s devopsAssignment.pdf
if (-not (Test-Path devopsAssignment.pdf)) {
throw "Expected PDF was not produced."
}
if ((Get-Item devopsAssignment.pdf).Length -le 0) {
throw "Expected PDF is empty."
}
- name: Upload compiled PDF
uses: actions/upload-artifact@v3