leafo / gh-actions-lua

GitHub action for Lua/LuaJIT
85 stars 27 forks source link

sudo apt-get command fails in custom built runner #33

Open kimxogus opened 1 year ago

kimxogus commented 1 year ago

We are using self-hosted runner which uses custom runner image based on https://github.com/actions/actions-runner-controller . sudo apt-get command fails in our runners(error logs below).

It seems we can't avoid that sudo apt-get, we can't use this action.

Can you resolve this issue?

Possible solution is to make the command to use bash shell like `bash -c 'sudo apt-get ...' (not sure that would work)

Run leafo/gh-actions-lua@v10

Notice: gh-actions-lua: No cache available, clean build
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /runner/_work/_temp/.lua-build -f /runner/_work/_temp/50d5[7](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:7)b5[8](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:9)-88b4-4d30-[9](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:10)8c0-8c004e53123f
/usr/bin/sudo apt-get install -q libreadline-dev libncurses-dev
sudo: apt-get: command not found
Error: Failed to install Lua: Error: The process '/usr/bin/sudo' failed with exit code 1
rbarkerSL commented 7 months ago

Having the same issue now.

Run leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e

Notice: gh-actions-lua: No cache available, clean build
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /runner/_work/_temp/.lua-build -f /runner/_work/_temp/[5](https://github.com/hashgraph/hedera-the-graph/actions/runs/8854400625/job/24317349769#step:7:5)[5](https://github.com/hashgraph/hedera-the-graph/actions/runs/8854400625/job/24317349769#step:7:6)5254e7-5fd6-45a2-bc05-90f5573c555f
/usr/bin/sudo apt-get install -q libreadline-dev libncurses-dev
sudo: apt-get: command not found
Error: Failed to install Lua: Error: The process '/usr/bin/sudo' failed with exit code 1