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
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
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
0 commit comments