Add 4GB swap + limit cargo to 1 job (avoid OOM on 2GB sr.ht VMs)
ober
fab9bb422f255e3f9e94f0a2e10c3876b2290f2b
--- a/.build.yml +++ b/.build.yml @@ -15,6 +15,8 @@ artifacts: tasks: - build-jerboa-tools: | 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"