@@ -16,27 +16,25 @@ jobs:
16
16
contents : write
17
17
steps :
18
18
- uses : actions/checkout@v5
19
+ - name : Install PowerShell profile
20
+ shell : pwsh
21
+ run : |
22
+ $profileDir = Split-Path -Parent $PROFILE.CurrentUserAllHosts
23
+ New-Item -ItemType Directory -Path $profileDir -Force | Out-Null
24
+ Copy-Item .github/workflows/pwsh_profile.ps1 $PROFILE.CurrentUserAllHosts -Force
19
25
- run : systeminfo
20
26
- run : ls "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC"
21
27
- run : Get-ChildItem env:* | Sort-Object -Property Name | Format-Table -AutoSize -Wrap
22
28
- run : choco uninstall bazel --yes
23
- # - uses: Cyberboss/install-winget@6f566e9e227561d5d31e45d65f9b777b3fa8f56f
29
+ - run : cmd /c "dir c:\ || echo swallowing errors"
30
+ - run : cmd /c "dir d:\ || echo swallowing errors"
24
31
- run : winget list --accept-source-agreements --disable-interactivity
25
32
- run : cmd /c "winget --info || echo swallowing errors"
26
- - run : cmd /c "winget settings export || echo swallowing errors"
27
- - run : cmd /c "echo %CD% || echo swallowing errors"
28
- - run : cmd /c "type .github\workflows\winget_settings.json || echo swallowing errors"
29
- - run : cmd /c "echo A=%LOCALAPPDATA% || echo swalloing wrrroe"
30
- - run : cmd /c "dir %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe /s || echo swalloing errors"
31
- - run : cmd /c "type %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json || echo swallowing errors"
32
33
- run : cmd /c "copy .github\workflows\winget_settings.json %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json || echo swallowing errors"
33
- - run : cmd /c "type %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json || echo swallowing errors"
34
- - run : cmd /c "winget settings export || echo swallowing errors"
35
- - run : cmd /c "dir c:\ || echo swallowing errors"
36
- - run : cmd /c "dir d:\ || echo swallowing errors"
37
34
- run : |
38
35
winget remove --all --verbose --force --purge --disable-interactivity Anaconda.Miniconda3 Mozilla.Firefox ShiningLight.OpenSSL.Dev PostgreSQL.PostgreSQL.17 RProject.R RProject.Rtools Unity.UnityHub Amazon.SAM-CLI Microsoft.AzureCLI Microsoft.webpicmd Google.Chrome StrawberryPerl.StrawberryPerl Microsoft.ServiceFabricSDK OpenJS.NodeJS.LTS Amazon.AWSCLI Microsoft.WebDeploy Microsoft.Azure.CosmosEmulator MongoDB.Shell MongoDB.Server WiXToolset.WiXToolset Amazon.SessionManagerPlugin sbt.sbt
39
36
echo Done! LASTEXITCODE=$LASTEXITCODE
37
+ - run : winget list --accept-source-agreements --disable-interactivity
40
38
- run : cmd /c "dir c:\ || echo swallowing errors"
41
39
- run : cmd /c "dir d:\ || echo swallowing errors"
42
40
- run : winget install bazelisk -r bazel --accept-package-agreements --disable-interactivity --silent
0 commit comments