]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[CI] Build cffi-lua from source to avoid clock skew
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 5 Dec 2025 17:09:05 +0000 (17:09 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 5 Dec 2025 17:09:05 +0000 (17:09 +0000)
Luarocks install fails due to clock skew in CI containers.
Build from source with touch to fix file timestamps.

.github/workflows/ci_rspamd.yml

index 0ad89a99313b619e43992d393ae3f5abc2b080b5..14bd0be1d0a54a3ff654610ffa2556d91b2a19d8 100644 (file)
@@ -44,8 +44,14 @@ jobs:
       - name: Install Lua FFI for non-LuaJIT builds
         if: inputs.enable_luajit == 'OFF'
         run: |
-          sudo dnf install -y luarocks lua-devel libffi-devel meson
-          sudo luarocks install cffi-lua
+          sudo dnf install -y luarocks lua-devel libffi-devel meson pkgconf gcc-c++
+          cd /tmp
+          curl -sL https://github.com/q66/cffi-lua/archive/refs/tags/v0.2.3.tar.gz | tar xz
+          cd cffi-lua-0.2.3
+          find . -exec touch {} +
+          meson setup build -Dlua_version=5.4 -Dbuildtype=release -Dtests=false
+          ninja -C build
+          sudo ninja -C build install
 
       - name: Run cmake
         run: |