Skip to content

Commit

Permalink
Enlarge swap space
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton committed Apr 15, 2024
1 parent 00d6520 commit 7355bc5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ jobs:
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

# Increase the amount of available swap space to prevent OOM.
- name: Configure swap
run: |
sudo swapon --show
sudo swapoff -a
sudo fallocate -l 12G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
# Disable the configuration cache; it's not restored, or saved at the end, so this
# removes any overhead trying to load or save it.
- name: Check and assemble everything
Expand Down

0 comments on commit 7355bc5

Please sign in to comment.