Skip to content

Commit 30d19f3

Browse files
committed
workflow: move swapfile from /mnt to / to free more space
1 parent 25480c6 commit 30d19f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ 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 dd if=/dev/zero of=/swapfile bs=1M count=4096
116+
sudo mkswap /swapfile
117+
sudo swapon /swapfile
111118
# use custom basetemp here because /var/tmp is on a smaller disk
112119
# than /mnt
113120
sudo mkdir -p /mnt/var/tmp/bib-tests

0 commit comments

Comments
 (0)