Skip to content

Commit

Permalink
feat(github-actions): increase WSL memory
Browse files Browse the repository at this point in the history
This is an attempt to avoid surprising errors when launching too many
processes from within WSL to "emulate native Windows testing".

See: Mozilla-Ocho/llamafile#491
  • Loading branch information
devversion committed Feb 20, 2025
1 parent 0ad6a37 commit f807174
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github-actions/setup-wsl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ runs:
using: composite
steps:
# Configure the WSL VM.
# Note: `memory` by default is 50% of the Windows host machine. We want to try
# a higher percentage to leverage more of the GitHub Windows machines.
# They have 16GB by default. See: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners.
- uses: Vampire/setup-wsl@v4
with:
wsl-conf: |
Expand All @@ -34,6 +37,7 @@ runs:
[wsl2]
firewall=false
localhostForwarding=false
memory=14GB
wsl-shell-command: bash --login -euo pipefail
additional-packages: |
curl
Expand Down

0 comments on commit f807174

Please sign in to comment.