Skip to content

Commit cc549cc

Browse files
committed
Try additional swap
1 parent d4a13ec commit cc549cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-and-test.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717

1818
- name: Configure additional swap space
1919
run: |
20-
sudo diskutil erasevolume HFS+ "swap" $(sudo hdiutil attach -nomount ram://8388608) # Creates 4GB swap
21-
sudo swapon /dev/disk$(diskutil list | grep swap | awk '{print $1}' | tr -d '*')
20+
sudo dd if=/dev/zero of=/private/var/vm/swapfile bs=1024m count=4
21+
sudo chmod 0600 /private/var/vm/swapfile
22+
sudo dynamic_pager -F /private/var/vm/swapfile
2223
2324
- name: Set up Python
2425
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)