From 7f7e42f6646858328e9edb4d3679ddb725856627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E8=8F=B2?= Date: Fri, 15 Mar 2024 11:29:39 +0800 Subject: [PATCH] test --- .github/workflows/container.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index e41b4b07..287f18f9 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -36,10 +36,7 @@ jobs: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 git config --system core.longpaths true $PSVersionTable.PSVersion - Invoke-WebRequest -Uri 'https://github.com/PowerShell/PowerShell/releases/download/v7.3.11/PowerShell-7.3.11-win-x64.msi' -OutFile '.\PowerShell-7.3.11-win-x64.msi' - msiexec.exe /package PowerShell-7.3.11-win-x64.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1 ADD_PATH=1 - & 'C:\Program Files\PowerShell\7\pwsh.exe' - $PSVersionTable.PSVersion + # - name: Modifying the registry # shell: powershell @@ -56,7 +53,7 @@ jobs: go-version: 'stable' - name: Configure Environment - shell: powershell + shell: pwsh run: |- w32tm /resync /nowait /rediscover echo "--------------------Install Microsoft.UI.Xaml-------------------" @@ -105,7 +102,7 @@ jobs: winget install --source winget --id Kitware.CMake -e - name: Building Windows Package - shell: powershell + shell: pwsh run: |- #Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\" -Recurse #Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits" -Recurse