From 1255dbd4b65386b839fb946dc932da67b4d4f435 Mon Sep 17 00:00:00 2001 From: Hirek Date: Thu, 17 Apr 2025 12:31:35 +0200 Subject: [PATCH] Add powershell core initialization --- .github/workflows/eu07.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/eu07.yml b/.github/workflows/eu07.yml index 0a14c5d0..c1de5954 100644 --- a/.github/workflows/eu07.yml +++ b/.github/workflows/eu07.yml @@ -14,10 +14,19 @@ jobs: runs-on: windows-latest + steps: - uses: actions/checkout@v4 with: submodules: "recursive" + + # Ensure PowerShell Core is installed (just in case it's missing) + - name: Install PowerShell Core + run: | + if (!(Get-Command pwsh -ErrorAction SilentlyContinue)) { + Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v7.2.1/PowerShell-7.2.1-win-x64.msi -OutFile $env:temp\pwsh_installer.msi + Start-Process msiexec.exe -ArgumentList "/i", "$env:temp\pwsh_installer.msi", "/quiet", "/norestart" -Wait + } - name: Init vcpkg run: ./setup.bat