Skip to content

Commit

Permalink
chore: adding a script to add swap for the build (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
brycroftgenesis authored Dec 9, 2024
1 parent 95dab24 commit 9d7f60a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bootstrap-build-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail

echo "Setting up swap space..."
sudo fallocate -l 45G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
echo "✅ Done setting up swap space!"
echo ""

0 comments on commit 9d7f60a

Please sign in to comment.