From 955e6c225f02f0c5d36525804d96dc5e44b36d81 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 18 Jan 2024 11:36:46 -0600 Subject: [PATCH] Set swap --- .azure-pipelines/azure-pipelines-linux.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.azure-pipelines/azure-pipelines-linux.yml b/.azure-pipelines/azure-pipelines-linux.yml index 90c69e2d16131..4e88013ecf992 100755 --- a/.azure-pipelines/azure-pipelines-linux.yml +++ b/.azure-pipelines/azure-pipelines-linux.yml @@ -21,6 +21,13 @@ jobs: done displayName: Manage disk space + - script: | + sudo fallocate -l 10GiB /swapfile || true + sudo chmod 600 /swapfile || true + sudo mkswap /swapfile || true + sudo swapon /swapfile || true + displayName: Create swap file + - script: | # sudo pip install --upgrade pip sudo pip install setuptools shyaml