Skip to content

Commit

Permalink
feat: clean up the CI for real now
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Feb 16, 2024
1 parent ec9cd16 commit 2c93452
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
template: "/norgopolis-template.rockspec"
version: ${{ env.LUAROCKS_VERSION }}
test_interpreters: null
dependencies: |
Expand All @@ -27,6 +28,8 @@ jobs:
rust
norgopolis
neorg
copy_directories:
bin
detailed_description:
The Norgopolis server module automatically compiles and exposes a norgopolis-server binary
which may be invoked from any program using the module as a dependency.
Expand Down
30 changes: 30 additions & 0 deletions norgopolis-template.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
local git_ref = '$git_ref'
local modrev = '$modrev'
local specrev = '$specrev'

local repo_url = '$repo_url'

rockspec_format = '3.0'
package = '$package'
version = modrev ..'-'.. specrev

description = {
summary = '$summary',
detailed = $detailed_description,
labels = $labels,
homepage = '$homepage',
$license
}

dependencies = $dependencies

source = {
url = repo_url .. '/archive/' .. git_ref .. '.zip',
dir = '$repo_name-' .. '$archive_dir_suffix',
}

build = {
type = "rust-binary",
binary = "norgopolis-server",
copy_directories = $copy_directories,
}

0 comments on commit 2c93452

Please sign in to comment.