Skip to content

Commit 42095bf

Browse files
Marc Jakobivhyrro
authored andcommitted
fix(rockspec): re-add rockspec template
1 parent 5b5ee6b commit 42095bf

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/luarocks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ jobs:
2727
detailed_description: |
2828
`toml-edit` is a library to parse and edit `.toml` files as if they were lua tables, all while preserving formatting and comments.
2929
Based on rust's `toml-edit`.
30+
template: .github/workflows/rockspec.template
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
local git_ref = '$git_ref'
2+
local modrev = '$modrev'
3+
local specrev = '$specrev'
4+
5+
local repo_url = '$repo_url'
6+
7+
rockspec_format = '3.0'
8+
package = '$package'
9+
version = modrev ..'-'.. specrev
10+
11+
description = {
12+
summary = '$summary',
13+
detailed = $detailed_description,
14+
labels = $labels,
15+
homepage = '$homepage',
16+
$license
17+
}
18+
19+
source = {
20+
url = repo_url .. '/archive/' .. git_ref .. '.zip',
21+
dir = '$repo_name-' .. '$archive_dir_suffix',
22+
}
23+
24+
build = {
25+
type = "rust-mlua",
26+
modules = {
27+
"toml_edit"
28+
},
29+
}

0 commit comments

Comments
 (0)