Skip to content

Commit 58f6c8e

Browse files
authored
Merge branch 'chobits:master' into master
2 parents 6a4e456 + 4f0b6c2 commit 58f6c8e

12 files changed

Lines changed: 1116 additions & 716 deletions

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test-nginx:
1111
strategy:
1212
matrix:
13-
version: [1.22.1, 1.23.2]
13+
version: [1.26.2, 1.27.1]
1414
fail-fast: false
1515
runs-on: "ubuntu-20.04"
1616

@@ -24,12 +24,15 @@ jobs:
2424
sudo apt install -y libpcre3 libpcre3-dev
2525
sudo apt-get install libnet-dns-perl
2626
sudo cpan -T -i Test::More
27+
- name: 'checkout luajit2'
28+
uses: actions/checkout@v3
29+
with:
30+
repository: openresty/luajit2
31+
path: luajit2
2732
- name: install luajit
33+
working-directory: luajit2
2834
run: |
2935
pwd
30-
wget https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
31-
tar xf LuaJIT-2.1.0-beta3.tar.gz
32-
cd LuaJIT-2.1.0-beta3
3336
make -j
3437
sudo make install
3538
ls /usr/local/lib/ |grep lua
@@ -59,6 +62,7 @@ jobs:
5962
pwd
6063
git clone https://github.com/openresty/lua-resty-core.git
6164
cd lua-resty-core
65+
git checkout d2179dbcb3d6d77127462cadd40cca103d89a52a
6266
sudo make install PREFIX=/opt/nginx
6367
cd ..
6468
git clone https://github.com/openresty/lua-resty-lrucache.git
@@ -80,8 +84,9 @@ jobs:
8084
run: |
8185
pwd
8286
cd nginx
83-
sed -i -e "s+#LUA_PACKAGE_PATH+lua_package_path \"/opt/nginx/lib/lua/?.lua;;\";+" ../t/*.t
84-
grep -i lua_package_path ../t/*.t
87+
#sed -i -e "s+#LUA_PACKAGE_PATH+lua_package_path \"/opt/nginx/lib/lua/?.lua;;\";+" ../t/*.t
88+
#grep -i lua_package_path ../t/*.t
89+
export TEST_NGINX_GLOBALS_HTTP='lua_package_path "/opt/nginx/lib/lua/?.lua;;";'
8590
nginx_tests_lib_path=../nginx-tests/lib
8691
proxy_connect_test_cases=../t/
8792
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

.github/workflows/test_nginx_lastest_commit.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ jobs:
1010
test-nginx:
1111
strategy:
1212
fail-fast: false
13+
matrix:
14+
compiler:
15+
- { compiler: LLVM, CC: clang, CXX: clang++}
1316
runs-on: "ubuntu-20.04"
14-
17+
env:
18+
CC: ${{ matrix.compiler.CC }}
19+
CXX: ${{ matrix.compiler.CXX }}
1520
steps:
1621
- uses: actions/checkout@v3
1722
- name: get dependencies
@@ -22,12 +27,14 @@ jobs:
2227
sudo apt install -y libpcre3 libpcre3-dev
2328
sudo apt-get install libnet-dns-perl
2429
sudo cpan -T -i Test::More
30+
- name: 'checkout luajit2'
31+
uses: actions/checkout@v3
32+
with:
33+
repository: openresty/luajit2
34+
path: luajit2
2535
- name: install luajit
36+
working-directory: luajit2
2637
run: |
27-
pwd
28-
wget https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
29-
tar xf LuaJIT-2.1.0-beta3.tar.gz
30-
cd LuaJIT-2.1.0-beta3
3138
make -j
3239
sudo make install
3340
ls /usr/local/lib/ |grep lua
@@ -55,6 +62,7 @@ jobs:
5562
pwd
5663
git clone https://github.com/openresty/lua-resty-core.git
5764
cd lua-resty-core
65+
git checkout d2179dbcb3d6d77127462cadd40cca103d89a52a
5866
sudo make install PREFIX=/opt/nginx
5967
cd ..
6068
git clone https://github.com/openresty/lua-resty-lrucache.git
@@ -76,8 +84,9 @@ jobs:
7684
run: |
7785
pwd
7886
cd nginx
79-
sed -i -e "s+#LUA_PACKAGE_PATH+lua_package_path \"/opt/nginx/lib/lua/?.lua;;\";+" ../t/*.t
80-
grep -i lua_package_path ../t/*.t
87+
#sed -i -e "s+#LUA_PACKAGE_PATH+lua_package_path \"/opt/nginx/lib/lua/?.lua;;\";+" ../t/*.t
88+
#grep -i lua_package_path ../t/*.t
89+
export TEST_NGINX_GLOBALS_HTTP='lua_package_path "/opt/nginx/lib/lua/?.lua;;";'
8190
nginx_tests_lib_path=../nginx-tests/lib
8291
proxy_connect_test_cases=../t/
8392
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

.github/workflows/test_openresty.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test-openresty:
1111
strategy:
1212
matrix:
13-
version: [1.21.4.1]
13+
version: [1.21.4.3, 1.25.3.1]
1414
fail-fast: false
1515
runs-on: "ubuntu-20.04"
1616

@@ -51,8 +51,9 @@ jobs:
5151
- name: test
5252
run: |
5353
pwd
54-
sed -i -e "s+#LUA_PACKAGE_PATH+lua_package_path \"/opt/openresty/lualib//?.lua;;\";+" ./t/*.t
55-
grep -i lua_package_path ./t/*.t
54+
#sed -i -e "s+#LUA_PACKAGE_PATH+lua_package_path \"/opt/openresty/lualib//?.lua;;\";+" ./t/*.t
55+
#grep -i lua_package_path ./t/*.t
56+
export TEST_NGINX_GLOBALS_HTTP='lua_package_path "/opt/openresty/lualib/?.lua;;";'
5657
nginx_tests_lib_path=./nginx-tests/lib
5758
proxy_connect_test_cases=./t/
5859
#export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

0 commit comments

Comments
 (0)