diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 2a888ada..087e8441 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -35,6 +35,8 @@ jobs: run: |- Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 git config --system core.longpaths true + $PSVersionTable.PSVersion + - uses: actions/checkout@v3 with: @@ -75,6 +77,12 @@ jobs: Invoke-WebRequest -Uri 'https://github.com/microsoft/winget-cli/releases/download/v1.6.3421/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' -OutFile '.\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' Add-AppxPackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle Add-AppxProvisionedPackage -Online -Package .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath .\65f132d72c1d44518a19d1a9c3de8e1f_License1.xml + echo "------------------upgrade poweshell ----------------" + winget install --source winget --id Microsoft.PowerShell -e + echo "------------View powershell version number-----------" + $PSVersionTable.PSVersion + + echo "---------------Install VisualStudio.2022---------------------- " winget install --source winget --id Microsoft.VisualStudio.2022.Community --override "--quiet --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.ATLMFC --add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang --includeRecommended"