We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f4cb5 commit d1a8720Copy full SHA for d1a8720
generate-runners/deploy.sh
@@ -64,12 +64,10 @@ if [[ -n "${OWNER}" && -n "${REPO}" ]]; then
64
fi
65
66
# make swap file if not exists. useful for adhoc cloud runners
67
-if [[ -z $(swapon --show=SIZE --raw --noheadings | sed 's/[^0-9]//g') ]]; then
68
-sudo fallocate -l $(free -h | awk 'NR==2{print(int(substr($2,1,length($2)-1)/2+.5))}')G /swapfile
+sudo fallocate -l 8G /swapfile
69
sudo chmod 600 /swapfile
70
sudo mkswap /swapfile
71
sudo swapon /swapfile
72
-fi
73
74
# update OS and install dependencies
75
sudo apt-get -q update
0 commit comments