Skip to content

Commit c07d976

Browse files
committed
amd64 workflow: install lua5.4 from source & update luzer version
1 parent a59d999 commit c07d976

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/amd64.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ jobs:
2222
- name: Run tests
2323
run: |
2424
sudo apt update && sudo apt install -y gdb pip curl python3-dev llvm \
25-
openjdk-17-jdk ca-certificates gnupg lua5.4 liblua5.4-dev libcurl4-gnutls-dev
25+
openjdk-17-jdk ca-certificates gnupg libcurl4-gnutls-dev
26+
wget https://www.lua.org/ftp/lua-5.4.7.tar.gz && tar zxf lua-5.4.7.tar.gz && cd lua-5.4.7 && \
27+
sed -i 's/std=gnu99/std=gnu99 -fPIC/1' src/Makefile && \
28+
sed -i 's/Wextra/Wextra -fPIC/1' src/Makefile && make all test && sudo make install
29+
ln -s $(which lua) $(which lua)5.4
2630
wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz && tar zxpf luarocks-3.11.1.tar.gz && \
2731
cd luarocks-3.11.1 && ./configure && make && sudo make install && cd .. && rm -rf luarocks-3.11.1.tar.gz luarocks-3.11.1
2832
eval $(luarocks path)
2933
wget https://github.com/tarantool/luajit/archive/refs/tags/v2.1.0-beta3.tar.gz && \
3034
tar zxpf v2.1.0-beta3.tar.gz && rm v2.1.0-beta3.tar.gz && cd luajit-2.1.0-beta3 && \
3135
make && sudo make install && sudo ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit && cd .. && rm -rf luajit-2.1.0-beta3
3236
git clone https://github.com/ligurio/luzer.git && \
33-
cd luzer && git checkout 6e3276c5e6faf18c8c98637162bea0a23f0cd1d3 && luarocks --local build && cd ..
37+
cd luzer && git checkout 649289aa945b7d6c1e2c29edccc83fd3fbe70568 && luarocks build --pack-binary-rock && cd ..
3438
export LUA_CPATH="/home/runner/work/casr/casr/luzer/build.luarocks/luzer/?.so;$LUA_CPATH"
3539
# Atheris fails to install on Ubuntu 24.04, see https://github.com/google/atheris/issues/82
3640
# pip3 install atheris

0 commit comments

Comments
 (0)