20
20
runs-on : ubuntu-20.04
21
21
strategy :
22
22
matrix :
23
- openresty-version : [1.19.9.1, 1.21.4.1, 1.21.4. 3, 1.25.3.1]
23
+ openresty-version : [1.19.9.1, 1.21.4.3, 1.25.3.1]
24
24
25
25
steps :
26
26
- name : Update and install OS dependencies
33
33
- name : Set environment variables
34
34
env :
35
35
OPENRESTY_VER : ${{ matrix.openresty-version }}
36
- RESTY_EVENTS_VER : 0.2.1
36
+ RESTY_EVENTS_VER : 0.3.0
37
37
LUAROCKS_VER : 3.9.0
38
38
OPENSSL_VER : 1.1.1q
39
39
PCRE_VER : 8.45
60
60
key : ${{ runner.os }}-${{ hashFiles('**/.github/workflows/build_and_test_with_resty_events.yml') }}-${{ matrix.openresty-version }}
61
61
62
62
- name : Add to Path
63
- if : steps.cache-deps.outputs.cache-hit != 'true'
64
63
run : echo "$INSTALL_ROOT/bin:$INSTALL_ROOT/nginx/sbin:$INSTALL_ROOT/luajit/bin:/usr/bin" >> $GITHUB_PATH
65
64
66
65
- name : Build and install OpenSSL
67
- if : steps.cache-deps.outputs.cache-hit != 'true'
68
66
run : |
69
67
curl -sSLO https://www.openssl.org/source/openssl-$OPENSSL.tar.gz
70
68
tar -xzf openssl-$OPENSSL.tar.gz
@@ -75,14 +73,12 @@ jobs:
75
73
76
74
- name : Checkout lua-resty-events
77
75
uses : actions/checkout@v3
78
- if : steps.cache-deps.outputs.cache-hit != 'true'
79
76
with :
80
77
repository : Kong/lua-resty-events
81
- ref : refs/tags/0.2.1
78
+ ref : refs/tags/0.3.0
82
79
path : lua-resty-events
83
80
84
81
- name : Build and install OpenResty
85
- if : steps.cache-deps.outputs.cache-hit != true
86
82
run : |
87
83
curl -sSLO https://openresty.org/download/openresty-$OPENRESTY.tar.gz
88
84
tar -xzf openresty-$OPENRESTY.tar.gz
@@ -106,7 +102,6 @@ jobs:
106
102
make install LUA_LIBDIR=$INSTALL_ROOT/lualib
107
103
108
104
- name : Install LuaRocks
109
- if : steps.cache-deps.outputs.cache-hit != 'true'
110
105
run : |
111
106
curl -sSLO https://luarocks.org/releases/luarocks-$LUAROCKS.tar.gz
112
107
tar -xzf luarocks-$LUAROCKS.tar.gz
@@ -120,19 +115,16 @@ jobs:
120
115
make install
121
116
122
117
- name : Install manual dependencies
123
- if : steps.cache-deps.outputs.cache-hit != 'true'
124
118
run : |
125
119
luarocks install luacheck
126
120
127
121
- name : Install Test::NGINX
128
- if : steps.cache-deps.outputs.cache-hit != 'true'
129
122
run : |
130
123
sudo apt-get install cpanminus
131
124
cpanm --notest --local-lib=$HOME/perl5 local::lib && eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
132
125
cpanm --notest Test::Nginx
133
126
134
127
- name : Install lua-resty-events
135
- if : steps.cache-deps.outputs.cache-hit != 'true'
136
128
run : |
137
129
cd lua-resty-events
138
130
OPENRESTY_PREFIX=$INSTALL_ROOT PREFIX=$INSTALL_ROOT LUA_LIB_DIR=$INSTALL_ROOT/lualib make install
0 commit comments