We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a82af16 commit b35130fCopy full SHA for b35130f
.github/workflows/build-lua.yml
@@ -42,16 +42,22 @@ jobs:
42
43
cd "lua-5.4.6"
44
make clean
45
- make MYCFLAGS="-fPIC" MYLDFLAGS="-shared" linux
+
46
+ # Build the object files with PIC
47
+ cd src
48
+ gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_LINUX -fPIC -c *.c
49
50
+ # Create shared library directly
51
+ gcc -shared -o liblua5.4.so *.o -lm -ldl
52
53
# Verify build output
- if [ ! -f src/liblua.so ]; then
54
+ if [ ! -f liblua5.4.so ]; then
55
echo "Build failed - library not found"
56
exit 1
57
fi
58
59
mkdir -p /work/artifacts
- cp src/liblua.so /work/artifacts/liblua5.4.so
60
+ cp liblua5.4.so /work/artifacts/
61
62
# Verify copy
63
if [ ! -f /work/artifacts/liblua5.4.so ]; then
0 commit comments