Skip to content

CI: release rockspec for Lua upon release - #299

Merged
Peefy merged 2 commits into
kcl-lang:mainfrom
f4z3r:ci/release-lua
Jul 28, 2026
Merged

CI: release rockspec for Lua upon release#299
Peefy merged 2 commits into
kcl-lang:mainfrom
f4z3r:ci/release-lua

Conversation

@f4z3r

@f4z3r f4z3r commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The following must be done for the LuaRocks publishing to work before publishing a new release on GH:

  1. Rename the rockspec file to kcl_lib-<version>-1.rockspec.
  2. Update package_version in the rockspec.

Right now the following would need to be done to ensure this can be published:

  1. Create an account on https://luarocks.org/ (ideally called kcl-lang to represent the GH org).
  2. Create an API key for that account.
  3. Store the API key in this repository's secrets under the name LUAROCKS_API_KEY.

@Peefy I can create the account and generate the API key if you want and then send them to you somehow. However it probably makes more sense that you do this as I don't have permissions to update secrets in this repository and it makes sense that you control the kcl-lang account on LuaRocks IMO.

f4z3r added 2 commits July 28, 2026 14:12
Signed-off-by: Jakob Beckmann <f4z3r-github@pm.me>
Signed-off-by: Jakob Beckmann <f4z3r-github@pm.me>
@f4z3r

f4z3r commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

I currently only publish the rock as a source tar. This means that clients will still need to have a Rust toolchain installed when installing the rock. In the future we could also release a binary rock that already contains the dynamic library binary so that a Rust toolchain is not needed. However, this means that we would need to publish various versions of the rock for different OS/CPU architectures. I think for now this is fine as a source rock. I can create a ticket to change this to binary rocks for a future enhancement.

@Peefy

Peefy commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

LGTM. Thank you very much; I'll configure the API key a bit later.

@Peefy
Peefy merged commit ed9c1a6 into kcl-lang:main Jul 28, 2026
8 of 9 checks passed
@f4z3r

f4z3r commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

@Peefy perfect, you can then publish the 0.12.4 version by simply locally running:

cd lua/
luarocks upload kcl_lib-0.12.4-1.rockspec --temp-key=<api-key>

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.

2 participants