Skip to content

Commit b7b41e9

Browse files
committed
Attempt to add swap space to ubuntu runner
1 parent 656e3fa commit b7b41e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ansible.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,16 @@ jobs:
132132
- name: Free up disk space for vagrant box
133133
uses: jlumbroso/[email protected]
134134

135+
# Running Virtualbox with Windows requires Swap space:
136+
# https://forums.virtualbox.org/viewtopic.php?p=551134#p551134
137+
- name: Create Swap File
138+
run: |
139+
sudo fallocate -l 2G /swapfile
140+
sudo chmod 600 /swapfile
141+
sudo mkswap /swapfile
142+
sudo swapon /swapfile
143+
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
144+
135145
- name: Check out the codebase.
136146
uses: actions/checkout@v4
137147

0 commit comments

Comments
 (0)