Add release to workflow
This commit is contained in:
24
.github/workflows/busted.yml
vendored
24
.github/workflows/busted.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
|||||||
if: success() && startsWith(matrix.os, 'ubuntu-')
|
if: success() && startsWith(matrix.os, 'ubuntu-')
|
||||||
run: |
|
run: |
|
||||||
gcov -p -b -s"$(pwd)" -r *.gcda
|
gcov -p -b -s"$(pwd)" -r *.gcda
|
||||||
rm -f "kiwi#*.gcov"
|
rm -f 'kiwi#'*.gcov
|
||||||
|
|
||||||
- name: generate Lua lcov test reports
|
- name: generate Lua lcov test reports
|
||||||
if: |-
|
if: |-
|
||||||
@@ -86,3 +86,25 @@ jobs:
|
|||||||
uses: coverallsapp/github-action@v2
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
|
||||||
|
publish:
|
||||||
|
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
|
||||||
|
needs: busted
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup ‘lua’
|
||||||
|
uses: jkl1337/gh-actions-lua@master
|
||||||
|
with:
|
||||||
|
luaVersion: "5.4.6"
|
||||||
|
- name: Setup ‘luarocks’
|
||||||
|
uses: jkl1337/gh-actions-luarocks@master
|
||||||
|
- name: Build C++ library
|
||||||
|
run: |
|
||||||
|
luarocks make --no-install
|
||||||
|
- name: Build rock
|
||||||
|
run: |
|
||||||
|
luarocks install dkjson
|
||||||
|
luarocks upload --api-key ${{ secrets.LUAROCKS_API_KEY }} \
|
||||||
|
rockspecs/kiwi-${GITHUB_REF_NAME#v}-1.rockspec
|
||||||
|
|||||||
40
rockspecs/kiwi-0.1.1-1.rockspec
Normal file
40
rockspecs/kiwi-0.1.1-1.rockspec
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
rockspec_format = "3.0"
|
||||||
|
package = "kiwi"
|
||||||
|
version = "0.1.1-1"
|
||||||
|
source = {
|
||||||
|
url = "git+https://github.com/jkl1337/ljkiwi",
|
||||||
|
tag = "v0.1.1",
|
||||||
|
}
|
||||||
|
description = {
|
||||||
|
summary = "LuaJIT FFI and Lua binding for the Kiwi constraint solver.",
|
||||||
|
detailed = [[
|
||||||
|
kiwi is a LuaJIT FFI and Lua binding for the Kiwi constraint solver. Kiwi is a fast
|
||||||
|
implementation of the Cassowary constraint solving algorithm. kiwi provides
|
||||||
|
reasonably efficient bindings using the LuaJIT FFI and convential Lua C bindings.]],
|
||||||
|
license = "MIT",
|
||||||
|
issues_url = "https://github.com/jkl1337/ljkiwi/issues",
|
||||||
|
maintainer = "John Luebs",
|
||||||
|
}
|
||||||
|
dependencies = {
|
||||||
|
"lua >= 5.1",
|
||||||
|
}
|
||||||
|
|
||||||
|
build = {
|
||||||
|
type = "make",
|
||||||
|
build_variables = {
|
||||||
|
LUAROCKS = "1",
|
||||||
|
LUA = "$(LUA)",
|
||||||
|
CFLAGS = "$(CFLAGS)",
|
||||||
|
LUA_INCDIR = "$(LUA_INCDIR)",
|
||||||
|
LUA_LIBDIR = "$(LUA_LIBDIR)",
|
||||||
|
LUALIB = "$(LUALIB)",
|
||||||
|
LIBFLAG = "$(LIBFLAG)",
|
||||||
|
LIB_EXT = "$(LIB_EXTENSION)",
|
||||||
|
OBJ_EXT = "$(OBJ_EXTENSION)",
|
||||||
|
},
|
||||||
|
install_variables = {
|
||||||
|
INST_LIBDIR = "$(LIBDIR)",
|
||||||
|
INST_LUADIR = "$(LUADIR)",
|
||||||
|
LIB_EXT = "$(LIB_EXTENSION)",
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user