Skip to content

Commit

Permalink
Preserve original Cygwin installer name, save it to workspace
Browse files Browse the repository at this point in the history
Let's see if it still freezes
  • Loading branch information
mlocati committed Oct 20, 2024
1 parent f9dbafb commit d253bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ jobs:
name: Download Cygwin installer
shell: pwsh
run: |
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile C:\CygwinInstaller.exe
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile setup-x86_64.exe
$expectedHash = (Invoke-WebRequest -Uri https://cygwin.com/sha512.sum).ToString()
$actualHash = Get-FileHash -LiteralPath C:\CygwinInstaller.exe -Algorithm SHA512
$actualHash = Get-FileHash -LiteralPath setup-x86_64.exe -Algorithm SHA512
if (-not($expectedHash.ToLower().Contains("${$actualHash.Hash.ToLower()} setup-x86_64.exe"))) {
throw 'Invalid hash of downloaded cygwin installer'
}
Expand All @@ -166,7 +166,7 @@ jobs:
shell: cmd
timeout-minutes: 60
run: >
C:\CygwinInstaller.exe
.\setup-x86_64.exe
--root C:\cygwin
--local-package-dir C:\cygwin-packages
--packages ${{ steps.vars.outputs.cygwin-packages }}
Expand Down

0 comments on commit d253bf1

Please sign in to comment.