From 189489d2215c15cee9d325f38067cf26825895ac Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 20 Feb 2025 08:28:50 +0000 Subject: [PATCH] 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: https://github.com/Mozilla-Ocho/llamafile/issues/491 --- github-actions/setup-wsl/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github-actions/setup-wsl/action.yml b/github-actions/setup-wsl/action.yml index 39ae632b2..672964dee 100644 --- a/github-actions/setup-wsl/action.yml +++ b/github-actions/setup-wsl/action.yml @@ -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: | @@ -34,6 +37,7 @@ runs: [wsl2] firewall=false localhostForwarding=false + memory=14GB wsl-shell-command: bash --login -euo pipefail additional-packages: | curl