Skip to content

Commit

Permalink
Increase Ubuntu-Runner Swapfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Aug 18, 2024
1 parent 094cd24 commit 89903a8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89903a8

Please sign in to comment.