From 50c3301357b3e589490b4423754898380c53be70 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sat, 22 Jan 2022 13:22:07 +0100 Subject: [PATCH] add(gh-actions) Build and Install Lua 5.4 step Ubuntu 20.04 hasn't a Lua 5.4 package. For now, GitHub actions run with this version of Ubuntu. We can manually build and install Lua 5.4 in the pipeline, waiting for GitHub to release a newer version of Ubuntu for their Actions. --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 562a62cd..17ad1e41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -142,12 +142,24 @@ jobs: run: sudo dpkg -i /var/cache/apt/archives/*.deb - name: Install Lua packages + if: matrix.lua_version != '5.4' run: | if [ "${{ matrix.lua_name }}" = "luajit" ]; then sudo apt-get install libluajit-5.1-dev luajit fi sudo apt-get install liblua${{ matrix.lua_version }}-dev lua${{ matrix.lua_version }} + # Ubuntu 20.04 hasn't a package for Lua 5.4, we need to build it from source. + - name: Build and Install Lua 5.4 + if: matrix.lua_version == '5.4' + run: | + wget -O /tmp/lua-5.4.3.tar.gz http://www.lua.org/ftp/lua-5.4.3.tar.gz + tar -xf /tmp/lua-5.4.3.tar.gz -C /tmp + cd /tmp/lua-5.4.3 + make all + make test + sudo make install + - name: Cache luarocks id: cache-luarocks uses: actions/cache@v2