diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 1ea40b0..2a8bb21 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -33,11 +33,11 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install system packages on Ubuntu if: ${{ runner.os == 'Linux' }} - run: sudo apt-get install curl readline + run: sudo apt-get install curl libreadline-dev - name: Install system packages on macOS if: ${{ runner.os == 'macOS' }} @@ -54,7 +54,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run ShellCheck run: shellcheck bin/* lib/* @@ -64,7 +64,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install shfmt run: brew install shfmt diff --git a/bin/install b/bin/install index 5bf05b9..abf0f45 100755 --- a/bin/install +++ b/bin/install @@ -74,8 +74,10 @@ install_lua() { echo "Installing LuaRocks v${luarocks_version}..." curl -L "https://luarocks.org/releases/${luarocks_name}.tar.gz" --output luarocks.tar.gz || exit 1 tar zxpf luarocks.tar.gz || exit 1 + cd "${luarocks_name}" || exit 1 - # clean the environment first and use make install instead of bootstrap to install lua rocks + # Create luarocks directory and configure + mkdir -p "$install_path/luarocks" || exit 1 ./configure --with-lua="$install_path" --prefix="$install_path/luarocks" || exit 1 make build || exit 1 make install || exit 1