Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| abb4bc4a70 | |||
| 09c7a750f9 |
@@ -1,36 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -23,4 +23,3 @@ scripts/luapack.lua
|
|||||||
*.packed.lua
|
*.packed.lua
|
||||||
*.lua.bin
|
*.lua.bin
|
||||||
*.lua.raw
|
*.lua.raw
|
||||||
*.rock
|
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
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"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user