Add 4GB swap + limit cargo to 1 job (avoid OOM on 2GB sr.ht VMs)

Jaime Fournier <jaimef@linbsd.org>

c04d1382aed4da39db2d5148e5586d7bc3e8d6dc

diff --git a/.builds/ci.yml b/.builds/ci.yml
index d535a11..dc3ecce 100644
--- a/.builds/ci.yml
+++ b/.builds/ci.yml
@@ -21,6 +21,8 @@ artifacts:
 tasks:
 - build-jerboa: |
     cd jerboa
+    sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile
+    export CARGO_BUILD_JOBS=1
     curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
       sh -s -- -y --profile minimal --default-toolchain 1.94.1
     source "$HOME/.cargo/env"