diff --git a/.github/workflows/pipeline-segment-electron-build.yml b/.github/workflows/pipeline-segment-electron-build.yml index 672e8175bb..4cf867eb48 100644 --- a/.github/workflows/pipeline-segment-electron-build.yml +++ b/.github/workflows/pipeline-segment-electron-build.yml @@ -152,8 +152,9 @@ jobs: - name: Install WSL (Windows only) if: ${{ inputs.target-platform == 'win' }} shell: powershell - run: | - # Check if WSL is installed + run: | + dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart + dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --install -d Ubuntu - name: Generate DEPS Hash run: |