diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4a96e481..6133be78 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,14 +43,20 @@ jobs: /Library/Developer/CommandLineTools sudo xcode-select --reset - - name: Set up WSL + - name: Install WSL if: runner.os == 'Windows' shell: powershell run: | wsl --update wsl --version + wsl --set-default-version 1 + wsl --install --distribution Ubuntu-22.04 --web-download --no-launch + + - name: Set up WSL + if: runner.os == 'Windows' + shell: powershell + run: | wsl --set-default-version 2 - wsl --install Ubuntu-22.04 --no-launch ubuntu2204 install --root wsl --set-default Ubuntu-22.04 wsl --list --verbose