From 9985cc6fd36d49a554bbd6ae1624a24f702187df Mon Sep 17 00:00:00 2001 From: zhaozg Date: Fri, 24 Jan 2025 21:09:51 +0800 Subject: [PATCH] ci: with lua-5.4.7 --- .github/shell/setenv_lua.sh | 2 +- .github/shell/setup_lua.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/shell/setenv_lua.sh b/.github/shell/setenv_lua.sh index b289b814..94b03b87 100755 --- a/.github/shell/setenv_lua.sh +++ b/.github/shell/setenv_lua.sh @@ -10,7 +10,7 @@ if [ "$PLATFORM" == "macosx" ]; then export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$LD_LIBRARY_PATH fi fi -if [[ "$PLATFORM" == "linux" && "$SSL" =~ ^libressl ]]; then +if [[ "$PLATFORM" == "linux" ]]; then sudo apt-get -y update sudo apt install -y valgrind fi diff --git a/.github/shell/setup_lua.sh b/.github/shell/setup_lua.sh index 2edd60a9..8092dfc3 100755 --- a/.github/shell/setup_lua.sh +++ b/.github/shell/setup_lua.sh @@ -62,8 +62,13 @@ else curl https://www.lua.org/ftp/lua-5.3.6.tar.gz | tar xz cd lua-5.3.6 elif [ "$LUA" == "lua5.4" ]; then - curl https://www.lua.org/ftp/lua-5.4.6.tar.gz | tar xz - cd lua-5.4.6 + curl https://www.lua.org/ftp/lua-5.4.7.tar.gz | tar xz + cd lua-5.4.7 + fi + + if [ "$PLATFORM" == "linux" ]; then + sudo apt-get -y update + sudo apt install -y readline-devel fi # Build Lua without backwards compatibility for testing @@ -109,5 +114,5 @@ elif [ "$LUA" == "lua5.2" ]; then elif [ "$LUA" == "lua5.3" ]; then rm -rf lua-5.3.6 elif [ "$LUA" == "lua5.4" ]; then - rm -rf lua-5.4.3 + rm -rf lua-5.4.7 fi