From a38cdcff77a43d7d4f5023481add11a9c0727850 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 5 Dec 2026 11:58:31 -0600 Subject: [PATCH] fix(ci[lua]) Run the native exporter in port-heads why: The scheduled Lua build calls a Python bootstrap that the Lua checkout no longer contains. what: - Bootstrap the LuaJIT exporter and LuaLS from the selected head. - Export its Lua API from the generator checkout. --- .github/workflows/port-heads.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/port-heads.yml b/.github/workflows/port-heads.yml index 783b53db9..92c4e4062 100644 --- a/.github/workflows/port-heads.yml +++ b/.github/workflows/port-heads.yml @@ -75,7 +75,7 @@ jobs: # Lua and Ruby repositories build their own docs tree in their own docs.yml # and do not call port-docs.yml, so there is no shared workflow to call. This # job runs the same exporter and build steps those workflows run, from the - # port head's own export-docs tooling, against docs main. + # port head's own docs tooling, against docs main. native: needs: matrix runs-on: ubuntu-24.04 @@ -120,12 +120,19 @@ jobs: version: 2026.9.9 working_directory: port cache: false + - name: Bootstrap the pinned LuaLS exporter and its LuaJIT + if: matrix.port == 'lua' + working-directory: docs-generator + run: | + lua scripts/bootstrap/bootstrap.lua runtimes luajit + lua scripts/bootstrap/bootstrap.lua rocks dev live --lua=.cache/toolchains/luajit-2.1/bin/luajit + lua scripts/bootstrap/bootstrap.lua luals + - name: Export the Lua source if: matrix.port == 'lua' + working-directory: docs-generator run: | - set -euo pipefail - python docs-generator/scripts/bootstrap_native.py luals - python docs-generator/scripts/export-docs \ + .cache/toolchains/luajit-2.1/bin/luajit scripts/docs/docs.lua export \ --source "$GITHUB_WORKSPACE/port" \ --luals "$GITHUB_WORKSPACE/docs-generator/.cache/tools/luals-3.19.1/bin/lua-language-server" \ --output "$GITHUB_WORKSPACE/port/docs/_build"