3 Commits

Author SHA1 Message Date
aziascreations 3f93c76e1f Fixed path in rockspec (#4)
Update np-sleep-2.0.0-1.rockspec
2026-04-12 09:30:40 +02:00
aziascreations 3c1be44863 Changed rock module name (#3)
* Changed rock name from `sleep` to `np-sleep`
* Relaxed restrictions on rock build action
2026-04-12 09:16:32 +02:00
aziascreations 8b7e3c86d8 Bump to 2.0.0, Added nil return, added rockspec (#2)
* Added rockspec file
* Added rock build action
* Added explicit `nil` return
* Bumped to v2.0.0
2026-04-12 08:54:22 +02:00
3 changed files with 58 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
name: Build & Upload Rockspec
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: rockspec-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Git submodules
uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0
- name: Install LuaRocks & build
run: |
sudo apt-get install -y luarocks
luarocks pack np-sleep-2.0.0-1.rockspec
- name: Upload rock artifact
uses: actions/upload-artifact@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
name: rockspec-artifact
path: "*.rock"
compression-level: 0
retention-days: 30
+1
View File
@@ -23,3 +23,4 @@ scripts/luapack.lua
*.packed.lua *.packed.lua
*.lua.bin *.lua.bin
*.lua.raw *.lua.raw
*.rock
+21
View File
@@ -0,0 +1,21 @@
package = "np-sleep"
version = "2.0.0-1"
source = {
url = "https://github.com/aziascreations/LuaJIT-Sleep/archive/refs/tags/v2.0.0.tar.gz",
dir = "LuaJIT-Sleep-2.0.0",
}
description = {
summary = "Pure LuaJIT bindings and wrappers for Win32 and Linux sleep functions.",
detailed = "Module that exposes millisecond and second precision sleep functions for Linux and Windows without having to compile anything.",
homepage = "https://github.com/aziascreations/LuaJIT-Sleep",
license = "CC0 1.0 Universal"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "builtin",
modules = {
sleep = "lua/sleep.lua"
},
}