Skip to content

[WIP] Issue #131 — [feature] add lua support to misc-builder#132

Draft
leftibot wants to merge 1 commit into
compiler-explorer:mainfrom
leftibot:fix/issue-131-feature-add-lua-support-to-misc-builder
Draft

[WIP] Issue #131 — [feature] add lua support to misc-builder#132
leftibot wants to merge 1 commit into
compiler-explorer:mainfrom
leftibot:fix/issue-131-feature-add-lua-support-to-misc-builder

Conversation

@leftibot
Copy link
Copy Markdown

Automated attempt by @leftibot. Opening as draft — verification failed.

Reason: no test files were detected in the diff

What changed

Fix #131: add Lua support to misc-builder
Adds Dockerfile.lua and lua/build.sh so misc-builder can produce
PUC-Rio Lua tarballs for Compiler Explorer, coordinating with
compiler-explorer/compiler-explorer#8696 and compiler-explorer/infra#2117.
The build script downloads the released tarball from www.lua.org,
builds with the posix target (supported across 5.1.5 through 5.5.0,
no readline dependency), installs into a staged prefix, and packages
the result as lua-.tar.xz containing bin/lua and bin/luac.
The new image is also wired into the GitHub Actions build matrix.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Files

 .github/workflows/build.yml |  1 +
 Dockerfile.lua              | 16 ++++++++++++++++
 lua/build.sh                | 37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+)

Will close #131 once finalized.

Triggered by @lefticus.

Adds Dockerfile.lua and lua/build.sh so misc-builder can produce
PUC-Rio Lua tarballs for Compiler Explorer, coordinating with
compiler-explorer/compiler-explorer#8696 and compiler-explorer/infra#2117.
The build script downloads the released tarball from www.lua.org,
builds with the `posix` target (supported across 5.1.5 through 5.5.0,
no readline dependency), installs into a staged prefix, and packages
the result as lua-<version>.tar.xz containing bin/lua and bin/luac.
The new image is also wired into the GitHub Actions build matrix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread lua/build.sh

# posix is supported by every released Lua version and avoids the readline
# dependency of the linux target; lua/luac are still fully functional.
make -j"$(nproc)" posix
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure this doesn't need a --prefix or something? where does the make install copy its files to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] add lua support to misc-builder

2 participants