Skip to content

Commit d1a8720

Browse files
authored
Update deploy.sh
1 parent 02f4cb5 commit d1a8720

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

generate-runners/deploy.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ if [[ -n "${OWNER}" && -n "${REPO}" ]]; then
6464
fi
6565

6666
# 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
67+
sudo fallocate -l 8G /swapfile
6968
sudo chmod 600 /swapfile
7069
sudo mkswap /swapfile
7170
sudo swapon /swapfile
72-
fi
7371

7472
# update OS and install dependencies
7573
sudo apt-get -q update

0 commit comments

Comments
 (0)