We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e086979 commit 02f4cb5Copy full SHA for 02f4cb5
generate-runners/deploy.sh
@@ -63,6 +63,14 @@ if [[ -n "${OWNER}" && -n "${REPO}" ]]; then
63
PREFIX=repos
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
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
76
[[ -z $(command -v xmllint) ]] && sudo apt-get -yy install libxml2-utils
0 commit comments