@@ -881,6 +881,10 @@ jobs:
881881 VS2010_TORRENT_URL : " ${{ fromJson(needs.prerequisites.outputs.dependencies).VS2010_TORRENT_URL }}"
882882 VS2010_TORRENT_DIR : " ${{ fromJson(needs.prerequisites.outputs.dependencies).VS2010_TORRENT_DIR }}"
883883 VS2010_SHA256 : " ${{ fromJson(needs.prerequisites.outputs.dependencies).VS2010_SHA256 }}"
884+ PS2DLC_FILENAME : " ${{ fromJson(needs.prerequisites.outputs.dependencies).PS2DLC_FILENAME }}"
885+ PS2DLC_DIR : " ${{ fromJson(needs.prerequisites.outputs.dependencies).PS2DLC_DIR }}"
886+ PS2DLC_URL : " ${{ fromJson(needs.prerequisites.outputs.dependencies).PS2DLC_URL }}"
887+ PS2DLC_SHA256 : " ${{ fromJson(needs.prerequisites.outputs.dependencies).PS2DLC_SHA256 }}"
884888
885889 steps :
886890 - name : Restore cygwin installer from cache
@@ -936,6 +940,26 @@ jobs:
936940 Get-ChildItem "$HOME\bootjdk\$env:BOOT_JDK_VERSION\*\*" | Move-Item -Destination "$HOME\bootjdk\$env:BOOT_JDK_VERSION"
937941 if : steps.bootjdk.outputs.cache-hit != 'true'
938942
943+ - name : Restore PowerShell 2 from cache
944+ id : ps2dlc
945+ uses : actions/cache@v4
946+ with :
947+ path : ~/${{ env.PS2DLC_DIR }}
948+ key : ps2dlc
949+
950+ - name : Download and unpack PowerShell 2
951+ run : |
952+ & curl -L "$env:PS2DLC_URL" -o "$HOME/$env:PS2DLC_FILENAME"
953+ $FileHash = Get-FileHash -Algorithm SHA256 "$HOME/$env:PS2DLC_FILENAME"
954+ $FileHash.Hash -eq $env:PS2DLC_SHA256
955+ & unzip "$HOME/$env:PS2DLC_FILENAME" -d "$HOME"
956+ if : steps.ps2dlc.outputs.cache-hit != 'true'
957+
958+ - name : Install PowerShell 2
959+ run : |
960+ cd "$HOME/$env:PS2DLC_DIR"
961+ & powershell.exe -executionpolicy bypass -file ./loadGAC.ps1
962+
939963 - name : Restore Visual Studio 2010 from cache
940964 id : vs2010
941965 uses : actions/cache@v4
0 commit comments