diff --git a/.github/workflows/wtest.yaml b/.github/workflows/wtest.yaml index d77a6eecdd..58984b2af5 100644 --- a/.github/workflows/wtest.yaml +++ b/.github/workflows/wtest.yaml @@ -6,15 +6,20 @@ jobs: use-wsl-minikube: runs-on: windows-latest steps: + # Install the latest Ubuntu distro + - uses: Vampire/setup-wsl@v3 + with: + distribution: Ubuntu-24.04 + + # Not sure why windows-latest still uses wsl1, but it does, and that won't fly with Docker. - name: Upgrade to WSL-2 shell: powershell run: | - wsl install --distribution Ubuntu-24.04 --no-launch --web-download + wsl --list --online wsl --set-version Ubuntu-24.04 2 + wsl --status + wsl --version - - uses: Vampire/setup-wsl@v3 - - # We can't use docker (or WSL2) because virtualization is not available - name: Install minikube in WSL shell: wsl-bash {0} run: | @@ -32,6 +37,7 @@ jobs: sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update + # Install docker stuff sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # Allow your user to access the Docker CLI without needing root access. @@ -39,4 +45,4 @@ jobs: echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.profile - docker info + sudo docker info