Add 4GB swap + limit cargo to 1 job (avoid OOM on 2GB sr.ht VMs)
Jaime Fournier <jaimef@linbsd.org>
597766183c1a33a0f8ebbb7a67ebc73fbd9ed073
diff --git a/.builds/ci.yml b/.builds/ci.yml
index 06c5868..dddc8ca 100644
--- a/.builds/ci.yml
+++ b/.builds/ci.yml
@@ -22,6 +22,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"