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: jobs:
build-manual: build-manual:
runs-on: latex-docker runs-on: windows-latex-host
container:
image: texlive/texlive:TL2026-historic
steps: steps:
- name: Check out source - name: Check out source
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Generate build metadata - name: Generate build metadata
shell: bash shell: powershell
run: | run: |
set -eu $shortSha = $env:GITHUB_SHA.Substring(0, 7)
short_sha="${GITHUB_SHA:-unknown}" $runNumber = $env:GITHUB_RUN_NUMBER
short_sha="${short_sha:0:7}" $runAttempt = $env:GITHUB_RUN_ATTEMPT
run_number="${GITHUB_RUN_NUMBER:-0}" @"
run_attempt="${GITHUB_RUN_ATTEMPT:-1}" \renewcommand{\BuildIdentifier}{+build.$runNumber.$shortSha}
cat > devopsBuildMetadata.tex <<EOF \renewcommand{\SourceRevision}{$shortSha}
\\renewcommand{\\BuildIdentifier}{+build.${run_number}.${short_sha}} \renewcommand{\WorkflowRunNumber}{$runNumber}
\\renewcommand{\\SourceRevision}{${short_sha}} \renewcommand{\WorkflowRunAttempt}{$runAttempt}
\\renewcommand{\\WorkflowRunNumber}{${run_number}} "@ | Set-Content -Path devopsBuildMetadata.tex -Encoding ASCII
\\renewcommand{\\WorkflowRunAttempt}{${run_attempt}}
EOF
- name: Compile manual - name: Compile manual
shell: bash shell: powershell
run: | run: |
set -eu
latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex 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 - name: Upload compiled PDF
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
+5 -4
View File
@@ -1,12 +1,13 @@
# Gitea Actions runner notes # Gitea Actions runner notes
Target runner label: latex-docker Target runner label: windows-latex-host
Execution mode: Docker job container Execution mode: host runner on Sergio's Windows workstation
Preferred job image: texlive/texlive:TL2026-historic Toolchain: local MiKTeX with latexmk, Git, Node.js, and Python/Pygments
Workflow path: .gitea/workflows/manual-pdf.yml Workflow path: .gitea/workflows/manual-pdf.yml
Main file: devopsAssignment.tex Main file: devopsAssignment.tex
Build command: latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex Build command: latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex
Artifact: devopsAssignment.pdf uploaded from the matching Actions run Artifact: devopsAssignment.pdf uploaded from the matching Actions run
The live runner registration still requires authenticated Gitea administration or SSH access to the Droplet. Docker job execution was tested first, but the 512 MB Droplet had too little free disk for a full TeX Live image.
The registered Windows host runner is the current working build path.
Do not commit runner registration tokens, Gitea tokens, or private keys. Do not commit runner registration tokens, Gitea tokens, or private keys.