Use Windows host runner for manual build workflow
manual-pdf / build-manual (push) Failing after 1m30s
manual-pdf / build-manual (push) Failing after 1m30s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
# Gitea Actions runner notes
|
||||
|
||||
Target runner label: latex-docker
|
||||
Execution mode: Docker job container
|
||||
Preferred job image: texlive/texlive:TL2026-historic
|
||||
Target runner label: windows-latex-host
|
||||
Execution mode: host runner on Sergio's Windows workstation
|
||||
Toolchain: local MiKTeX with latexmk, Git, Node.js, and Python/Pygments
|
||||
Workflow path: .gitea/workflows/manual-pdf.yml
|
||||
Main file: 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
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user