From 7b37908a536907a529956d1ab68fa89d3478d801 Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Thu, 23 Nov 2023 15:06:23 +0100 Subject: [PATCH] fix(ci/build-toml): use github action instead of manually installing luarocks --- .github/workflows/build-toml.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-toml.yml b/.github/workflows/build-toml.yml index 947412a9c..2d8480330 100644 --- a/.github/workflows/build-toml.yml +++ b/.github/workflows/build-toml.yml @@ -17,18 +17,11 @@ jobs: with: luaVersion: "5.1" - name: Install Luarocks - uses: actions/checkout@v4 - with: - fetch-depth: 1 - repository: luarocks/luarocks - - name: Configure and Install Luarocks - run: | - ./configure --prefix=$HOME/rocks/ --lua-version=5.1 --force-config --with-lua=$PWD/.lua - make install + uses: leafo/gh-actions-luarocks@v4 - name: Install TOML Package run: | - ./rocks/bin/luarocks --local install toml - ./rocks/bin/luarocks pack toml + luarocks --local install toml + luarocks pack toml - uses: actions/upload-artifact@v3 with: name: output