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
This commit is contained in:
2026-04-12 08:54:22 +02:00
committed by GitHub
parent 241dd14e57
commit 8b7e3c86d8
5 changed files with 65 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
name: Build & Upload Rockspec
on:
push:
branches: master
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 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