Skip to content

Commit

Permalink
Fix checksum validate
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Apr 30, 2024
1 parent 005dd0a commit 139e1e2
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,12 @@ jobs:
- name: Download Visual Studio 2017
run: |
curl -L "$env:VS2017_URL" -o "$HOME/vs2017.exe"
echo "$env:VS2017_SHA $HOME/vs2017.exe" | sha256sum --check --status
if ((Get-FileHash -Algorithm SHA256 "$HOME/vs2017.exe").Hash -eq "$env:VS2017_SHA") {
Write-Host "File integrity verified." }
else {
Write-Host "File integrity check failed!"
exit 1
}
if: steps.vs2017.outputs.cache-hit != 'true' && matrix.version == 'jdk8u'

- name: Install Visual Studio 2017
Expand All @@ -341,22 +346,16 @@ 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" | 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 {
if ((Get-FileHash -Algorithm SHA256 "$HOME/vs2017.exe").Hash -eq "$env:VS2017_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')
}
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 139e1e2

Please sign in to comment.