From 89903a84b2b356b2c926aa8b462354969a1de19f Mon Sep 17 00:00:00 2001 From: Vinyzu <50874994+Vinyzu@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:13:10 +0200 Subject: [PATCH] Increase Ubuntu-Runner Swapfile See https://github.com/actions/runner-images/discussions/7188#discussioncomment-6750749 --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaee104..3c1e3dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,21 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + - name: Increase swapfile + run: | + sudo swapoff -a + sudo fallocate -l 15G /swapfile + sudo chmod 600 /swapfile + sudo mkswap /swapfile + sudo swapon /swapfile + sudo swapon --show + - name: maximize build space + uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c # ratchet:easimon/maximize-build-space@v10 + with: + root-reserve-mb: 38912 + swap-size-mb: 4096 + remove-dotnet: "true" + remove-android: "true" - name: Install dependencies run: | python -m pip install --upgrade pip