Open xoiga123 opened 1 year ago
@pierotofy Sorry for pinging. Seems like the large runners doesn't have a swap file yet, similar to github codespaces. I can't figure out how to create a swapfile in /tmp like a commented suggested though.
this fails for buildjet-4vcpu-ubuntu-2204-arm too
Since there haven't been any fix within this repository I have simply created my own version of an action, you can see it at https://github.com/actionhippie/swap-space
this error message appeared to me today on ubuntu-latest
after a few previous successful passes in my action...
Problem is that the action doesn't work on systems that don't have enabled swap when running the action.
export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
sudo swapoff $SWAP_FILE
...
the SWAP_FILE
is then empty and swapoff
with empty variable doesn't work.
Only happens on a large runner (
ubuntu-latest-8-cores
), works fine on regular runners (ubuntu-latest
).