Skip to content

Commit

Permalink
Install Powershell Core 7.4.5 in windows pwsh pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ACSimon33 committed Sep 12, 2024
1 parent eb869f5 commit 41ecb40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/windows_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ jobs:
TCL_INSTALLER: SetupTcl-8.6.13-x64_Bawt-2.3.1
TCL_DL_URL: http://www.bawt.tcl3d.org/download/Tcl-Pure
TCLSH_DIR: C:\Tcl\bin
PWSH_INSTALLER: PowerShell-7.4.5-win-x64.msi
PWSH_DL_URL: https://github.com/PowerShell/PowerShell/releases/download/v7.4.5
DIST_WIN: modules-*-win
MODULE_DIR: C:\Program Files\Environment Modules\bin
steps:
- name: Configure Git autocrlf
shell: bash
Expand All @@ -86,6 +87,11 @@ jobs:
run: |
curl -LfsS -o %TCL_INSTALLER%.exe %TCL_DL_URL%/%TCL_INSTALLER%.exe
%TCL_INSTALLER% /verysilent
- name: Install Powershell Core under Windows
shell: cmd
run: |
curl -LfsS -o %PWSH_INSTALLER% %PWSH_DL_URL%/%PWSH_INSTALLER%
msiexec.exe /package %PWSH_INSTALLER% /quiet ADD_PATH=1
- name: Configure Git safe.directory
run: |
bash -lc 'git config --global --add safe.directory $(cygpath -u "$GITHUB_WORKSPACE")'
Expand All @@ -103,7 +109,7 @@ jobs:
run: |
:: manually define module cmd dir as PATH updated by INSTALL.bat
:: is not inherited by test_script
if not "%TCLSH_DIR%" == "" path %MODULE_DIR%;%TCLSH_DIR%;%PATH%
if not "%TCLSH_DIR%" == "" path %TCLSH_DIR%;%PATH%
cd %DIST_WIN%
pwsh TESTINSTALL_PWSH.ps1
- name: Uninstall Modules
Expand Down

0 comments on commit 41ecb40

Please sign in to comment.