Skip to content

Commit

Permalink
Fix powershell sha.
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Apr 30, 2024
1 parent af654e4 commit 7eed304
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,22 @@ jobs:
--add Microsoft.VisualStudio.Component.Windows10SDK.17763
--quiet --wait'
- name: Download Visual Studio 2019
run: |
curl -L "$env:VS2019_URL" -o "$HOME/vs2019.exe"
echo "$env:VS2019_SHA $HOME/vs2019.exe" | sha1sum --check --status
if: steps.vs2019.outputs.cache-hit != 'true' && (matrix.version == 'jdk11u' || matrix.version == 'jdk17u')
# - name: Download Visual Studio 2019
# run: |
# curl -L "$env:VS2019_URL" -o "$HOME/vs2019.exe"
# echo "$env:VS2019_SHA $HOME/vs2019.exe" | sha256sum --check --status
# if: steps.vs2019.outputs.cache-hit != 'true' && (matrix.version == 'jdk11u' || matrix.version == 'jdk17u')

- name: Download Visual Studio 2019
run: |
curl -L "$env:VS2019_URL" -o "$HOME/vs2019.exe"
if ((Get-FileHash -Algorithm SHA256 "$HOME/vs2019.exe").Hash -eq "$env:VS2019_SHA") {
Write-Host "File integrity verified."
} else {
Write-Host "File integrity check failed!"
exit 1
}
if: steps.vs2019.outputs.cache-hit != 'true' && (matrix.version == 'jdk11u' || matrix.version == 'jdk17u')

- name: Install Visual Studio 2019
if: matrix.version == 'jdk11u' || matrix.version == 'jdk17u'
Expand Down

0 comments on commit 7eed304

Please sign in to comment.