ci: add rock workflow
This commit is contained in:
parent
b2d65fdc40
commit
44686975f4
|
@ -6,6 +6,7 @@
|
||||||
"enableGlobDot": true,
|
"enableGlobDot": true,
|
||||||
"words": [
|
"words": [
|
||||||
"Aire-One",
|
"Aire-One",
|
||||||
|
"apikey",
|
||||||
"capi",
|
"capi",
|
||||||
"constructorfct",
|
"constructorfct",
|
||||||
"dbus",
|
"dbus",
|
||||||
|
@ -17,6 +18,7 @@
|
||||||
"JohnnyMorganz",
|
"JohnnyMorganz",
|
||||||
"keygrabber",
|
"keygrabber",
|
||||||
"ldoc",
|
"ldoc",
|
||||||
|
"leafo",
|
||||||
"luacheck",
|
"luacheck",
|
||||||
"luacheckrc",
|
"luacheckrc",
|
||||||
"luadoc",
|
"luadoc",
|
||||||
|
@ -26,6 +28,7 @@
|
||||||
"mousebindings",
|
"mousebindings",
|
||||||
"mousegrabber",
|
"mousegrabber",
|
||||||
"rockspec",
|
"rockspec",
|
||||||
|
"rockspecs",
|
||||||
"staticfct",
|
"staticfct",
|
||||||
"stylua"
|
"stylua"
|
||||||
]
|
]
|
||||||
|
|
|
@ -41,3 +41,11 @@ jobs:
|
||||||
- uses: streetsidesoftware/cspell-action@v6
|
- uses: streetsidesoftware/cspell-action@v6
|
||||||
with:
|
with:
|
||||||
incremental_files_only: false
|
incremental_files_only: false
|
||||||
|
|
||||||
|
rockspec:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: leafo/gh-actions-lua@v9
|
||||||
|
- uses: leafo/gh-actions-luarocks@v4
|
||||||
|
- run: luarocks lint awesome-slot-dev-1.rockspec
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
name: Upload rock to LuaRocks
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
affected:
|
||||||
|
uses: lunarmodules/.github/.github/workflows/list_affected_rockspecs.yml@main
|
||||||
|
upload:
|
||||||
|
needs: affected
|
||||||
|
if: >-
|
||||||
|
${{
|
||||||
|
github.repository == 'Aire-One/awesome-slot' &&
|
||||||
|
( github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/') ) &&
|
||||||
|
needs.affected.outputs.rockspecs
|
||||||
|
}}
|
||||||
|
uses: lunarmodules/.github/.github/workflows/upload_to_luarocks.yml@main
|
||||||
|
with:
|
||||||
|
rockspecs: ${{ needs.affected.outputs.rockspecs }}
|
||||||
|
secrets:
|
||||||
|
apikey: ${{ secrets.LUAROCKS_APIKEY }}
|
5
Makefile
5
Makefile
|
@ -15,7 +15,10 @@ ldoc-dryrun:
|
||||||
cspell:
|
cspell:
|
||||||
cspell lint .
|
cspell lint .
|
||||||
|
|
||||||
lint: luacheck stylua ldoc-dryrun cspell
|
lint-rockspec:
|
||||||
|
luarocks lint awesome-slot-dev-1.rockspec
|
||||||
|
|
||||||
|
lint: luacheck stylua ldoc-dryrun cspell lint-rockspec
|
||||||
|
|
||||||
ldoc:
|
ldoc:
|
||||||
ldoc .
|
ldoc .
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
rockspec_format = "3.0"
|
||||||
package = "awesome-slot"
|
package = "awesome-slot"
|
||||||
version = "dev-1"
|
version = "dev-1"
|
||||||
source = {
|
source = {
|
||||||
|
@ -8,6 +9,11 @@ description = {
|
||||||
detailed = "A declarative API to connect signals for the AwesomeWM.",
|
detailed = "A declarative API to connect signals for the AwesomeWM.",
|
||||||
homepage = "https://github.com/Aire-One/awesome-slot",
|
homepage = "https://github.com/Aire-One/awesome-slot",
|
||||||
license = "*** please specify a license ***",
|
license = "*** please specify a license ***",
|
||||||
|
labels = {
|
||||||
|
"awesome",
|
||||||
|
"signals",
|
||||||
|
"declarative",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
build = {
|
build = {
|
||||||
type = "builtin",
|
type = "builtin",
|
||||||
|
|
Loading…
Reference in New Issue