From 81c7b9773cbb862bbb3e36695077c62bcfdaa7b6 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad <61760125+gaiksaya@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:19:24 -0700 Subject: [PATCH] Fix GH runners memory issue by increasing swapfile (#9596) Signed-off-by: Sayali Gaikawad --- .github/workflows/check-compatibility.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check-compatibility.yml b/.github/workflows/check-compatibility.yml index b5f2ccbae6917..dab8afd4ec1f2 100644 --- a/.github/workflows/check-compatibility.yml +++ b/.github/workflows/check-compatibility.yml @@ -15,6 +15,15 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} + - name: Increase swapfile + run: | + sudo swapoff -a + sudo fallocate -l 10G /swapfile + sudo chmod 600 /swapfile + sudo mkswap /swapfile + sudo swapon /swapfile + sudo swapon --show + - name: Run compatibility task run: ./gradlew checkCompatibility -i | tee $HOME/gradlew-check.out