Skip to content

Commit

Permalink
Try additional swap
Browse files Browse the repository at this point in the history
  • Loading branch information
filipstrand committed Nov 16, 2024
1 parent d4a13ec commit cc549cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:

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

0 comments on commit cc549cc

Please sign in to comment.