From a4ca3fdd4346a08b89a09734c75d1ff7647cdce7 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sat, 22 Jan 2022 14:32:12 +0100 Subject: [PATCH] add(gh-actions) Lua5.4 Build and Install LGI step The latest packaged version of LGI doesn't support Lua 5.4. We need to build the git master version. --- .github/workflows/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17ad1e41..abce4894 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -207,9 +207,21 @@ jobs: cd /tmp/xcb-errors sudo make install + # Only LGI git master supports Lua 5.4. We need to build it from source. + - name: Build and Install LGI + if: matrix.lua_version == '5.4' + run: | + wget -O /tmp/lgi.zip https://github.com/pavouk/lgi/archive/refs/heads/master.zip + unzip /tmp/lgi.zip -d /tmp + cd /tmp/lgi-master + make all + sudo make install + - name: Install rocks run: | - sudo -H luarocks install lgi ${{ matrix.lgi_version }} + if [ "${{ matrix.lua_name }}" != "lua5.4" ]; then + sudo -H luarocks install lgi ${{ matrix.lgi_version }} + fi sudo -H luarocks install ldoc sudo -H luarocks install busted