File tree Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 4343 go-version : " 1.15"
4444
4545 - name : get dependencies
46- run : sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl luarocks
46+ run : sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl
47+
48+ - name : Install Lua
49+ uses : leafo/gh-actions-lua@v8
50+
51+ - name : Install Luarocks
52+ uses : leafo/gh-actions-luarocks@v4
4753
4854 - name : install
4955 run : |
5460 chmod +x build-apisix-openresty.sh
5561 OR_PREFIX=$OPENRESTY_PREFIX ./build-apisix-openresty.sh latest
5662
57- sudo luarocks make rockspec/lua-resty-etcd-master-0.1-0.rockspec
58- sudo luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)
59- sudo luarocks install dkjson > build.log 2>&1 || (cat build.log && exit 1)
63+ luarocks make rockspec/lua-resty-etcd-master-0.1-0.rockspec
64+ luarocks install luacheck > build.log 2>&1 || (cat build.log && exit 1)
65+ luarocks install dkjson > build.log 2>&1 || (cat build.log && exit 1)
6066 make utils
6167 wget https://github.com/etcd-io/etcd/releases/download/v$ETCD_VER/etcd-v$ETCD_VER-linux-amd64.tar.gz
6268 tar xf etcd-v$ETCD_VER-linux-amd64.tar.gz
Original file line number Diff line number Diff line change 1+ package = " lua-resty-etcd"
2+ version = " 1.6.1-0"
3+ source = {
4+ url = " git://github.com/api7/lua-resty-etcd" ,
5+ tag = " v1.6.1"
6+ }
7+
8+ description = {
9+ summary = " Nonblocking Lua etcd driver library for OpenResty" ,
10+ homepage = " https://github.com/api7/lua-resty-etcd" ,
11+ license = " Apache License 2.0"
12+ }
13+
14+ dependencies = {
15+ " api7-lua-resty-http = 0.2.0" ,
16+ " lua-typeof = 0.1"
17+ }
18+
19+ build = {
20+ type = " builtin" ,
21+ modules = {
22+ [" resty.etcd" ] = " lib/resty/etcd.lua" ,
23+ [" resty.etcd.v2" ] = " lib/resty/etcd/v2.lua" ,
24+ [" resty.etcd.v3" ] = " lib/resty/etcd/v3.lua" ,
25+ [" resty.etcd.utils" ] = " lib/resty/etcd/utils.lua" ,
26+ [" resty.etcd.serializers.json" ] = " lib/resty/etcd/serializers/json.lua" ,
27+ [" resty.etcd.serializers.raw" ] = " lib/resty/etcd/serializers/raw.lua" ,
28+ [" resty.etcd.health_check" ] = " lib/resty/etcd/health_check.lua" ,
29+ }
30+ }
31+
You can’t perform that action at this time.
0 commit comments