Skip to content

Commit f807174

Browse files
committed
feat(github-actions): increase WSL memory
This is an attempt to avoid surprising errors when launching too many processes from within WSL to "emulate native Windows testing". See: mozilla-ai/llamafile#491
1 parent 0ad6a37 commit f807174

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github-actions/setup-wsl/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ runs:
2626
using: composite
2727
steps:
2828
# Configure the WSL VM.
29+
# Note: `memory` by default is 50% of the Windows host machine. We want to try
30+
# a higher percentage to leverage more of the GitHub Windows machines.
31+
# They have 16GB by default. See: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners.
2932
- uses: Vampire/setup-wsl@v4
3033
with:
3134
wsl-conf: |
@@ -34,6 +37,7 @@ runs:
3437
[wsl2]
3538
firewall=false
3639
localhostForwarding=false
40+
memory=14GB
3741
wsl-shell-command: bash --login -euo pipefail
3842
additional-packages: |
3943
curl

0 commit comments

Comments
 (0)