Skip to content

Commit

Permalink
workflow: move swapfile from /mnt to / to free more space
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Jan 15, 2025
1 parent 25480c6 commit 30d19f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ jobs:
sudo -E pip install --user -r test/requirements.txt
- name: Workarounds for GH runner diskspace
run: |
# move swap to the root disk
ls -lh /mnt/swapfile
sudo swapoff -a
sudo rm -f /mnt/swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo mkswap /swapfile
sudo swapon /swapfile
# use custom basetemp here because /var/tmp is on a smaller disk
# than /mnt
sudo mkdir -p /mnt/var/tmp/bib-tests
Expand Down

0 comments on commit 30d19f3

Please sign in to comment.