From 410b53d7f0a5a18d7733278c70030092aac6ff0a Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Fri, 21 Feb 2025 01:03:48 +0000 Subject: [PATCH] HACK: Increase swapfile size to 10G --- .github/workflows/build-swift-debugging.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-swift-debugging.yaml b/.github/workflows/build-swift-debugging.yaml index 5c21a06a65b..7985db985c9 100644 --- a/.github/workflows/build-swift-debugging.yaml +++ b/.github/workflows/build-swift-debugging.yaml @@ -18,6 +18,16 @@ jobs: docker rmi $(docker image ls -aq) fi df -h + + - 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 + - uses: actions/checkout@v4 - name: Create .gclient file run: |