Skip to content

Commit e62d205

Browse files
committed
Set up PowerShell to fix CI the problem during installing vcpkg dependencies
1 parent aa0c53c commit e62d205

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ jobs:
106106
- name: Checkout code
107107
uses: actions/checkout@v4
108108

109+
- name: Install PowerShell Core
110+
shell: bash
111+
run: |
112+
pwsh_version=7.5.4
113+
wget https://github.com/PowerShell/PowerShell/releases/download/v${pwsh_version}/PowerShell-${pwsh_version}-win-x64.zip
114+
unzip PowerShell-${pwsh_version}-win-x64.zip -d ~/pwsh
115+
export PATH=~/pwsh:$PATH
116+
109117
- name: Setup MSVC
110118
uses: microsoft/setup-msbuild@v2
111119

0 commit comments

Comments
 (0)