Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
go-version: "1.15"

- name: get dependencies
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl luarocks
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl

- name: Install Lua
uses: leafo/gh-actions-lua@v8

- name: Install Luarocks
uses: leafo/gh-actions-luarocks@v4

- name: install
run: |
Expand All @@ -54,9 +60,9 @@ jobs:
chmod +x build-apisix-openresty.sh
OR_PREFIX=$OPENRESTY_PREFIX ./build-apisix-openresty.sh latest

sudo luarocks make rockspec/lua-resty-etcd-master-0.1-0.rockspec
sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)
sudo luarocks install dkjson > build.log 2>&1 || (cat build.log && exit 1)
luarocks make rockspec/lua-resty-etcd-master-0.1-0.rockspec
luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)
luarocks install dkjson > build.log 2>&1 || (cat build.log && exit 1)
make utils
wget https://github.com/etcd-io/etcd/releases/download/v$ETCD_VER/etcd-v$ETCD_VER-linux-amd64.tar.gz
tar xf etcd-v$ETCD_VER-linux-amd64.tar.gz
Expand Down
31 changes: 31 additions & 0 deletions rockspec/lua-resty-etcd-1.6.1-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package = "lua-resty-etcd"
version = "1.6.1-0"
source = {
url = "git://github.com/api7/lua-resty-etcd",
tag = "v1.6.1"
}

description = {
summary = "Nonblocking Lua etcd driver library for OpenResty",
homepage = "https://github.com/api7/lua-resty-etcd",
license = "Apache License 2.0"
}

dependencies = {
"api7-lua-resty-http = 0.2.0",
"lua-typeof = 0.1"
}

build = {
type = "builtin",
modules = {
["resty.etcd"] = "lib/resty/etcd.lua",
["resty.etcd.v2"] = "lib/resty/etcd/v2.lua",
["resty.etcd.v3"] = "lib/resty/etcd/v3.lua",
["resty.etcd.utils"] = "lib/resty/etcd/utils.lua",
["resty.etcd.serializers.json"] = "lib/resty/etcd/serializers/json.lua",
["resty.etcd.serializers.raw"] = "lib/resty/etcd/serializers/raw.lua",
["resty.etcd.health_check"] = "lib/resty/etcd/health_check.lua",
}
}