Skip to content

Commit 543b27f

Browse files
committed
workflow: move swapfile from /mnt to / to free more space
1 parent a821707 commit 543b27f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ jobs:
108108
sudo -E pip install --user -r test/requirements.txt
109109
- name: Workarounds for GH runner diskspace
110110
run: |
111+
# move swap to the root disk
112+
ls -lh /mnt/swapfile
113+
sudo swapoff -a
114+
sudo rm -f /mnt/swapfile
115+
sudo mkswap --size 4G --file /swapfile
116+
sudo swapon /swapfile
111117
# use custom basetemp here because /var/tmp is on a smaller disk
112118
# than /mnt
113119
sudo mkdir -p /mnt/var/tmp/bib-tests

0 commit comments

Comments
 (0)