From ec99353715b5cc79834959f15d1fcde5cb3674ae Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sun, 7 Jun 2026 06:51:28 -0400 Subject: [PATCH] ci(documentation): add `runner` input for GPU-queue doc builds Mirrors tests.yml: a JSON-encoded `runner` input (array of labels, e.g. ["self-hosted","Linux","X64","gpu"]) that overrides self-hosted/os when non-empty, so docs that require a GPU can build via the central documentation.yml@v1 caller (runs-on uses fromJson(runner)) instead of a bespoke GPU.yml. Backward-compatible: default "" preserves self-hosted/os behavior for all existing callers. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/documentation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 0b3b2ba..425c3e3 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -31,6 +31,11 @@ on: default: "ubuntu-latest" required: false type: string + runner: + description: "JSON-encoded runs-on value (string or array of labels, e.g. '[\"self-hosted\",\"Linux\",\"X64\",\"gpu\"]'). When non-empty it overrides self-hosted/os — use it to build docs on a GPU queue." + default: "" + required: false + type: string cache: description: "Use the julia-actions/cache action for caching" default: true @@ -55,7 +60,7 @@ jobs: tests: name: "Build and Deploy Documentation" continue-on-error: ${{ inputs.continue-on-error || inputs.julia-version == 'nightly' }} - runs-on: "${{ inputs.self-hosted && 'self-hosted' || inputs.os }}" + runs-on: ${{ inputs.runner != '' && fromJson(inputs.runner) || (inputs.self-hosted && 'self-hosted' || inputs.os) }} steps: - uses: actions/checkout@v6