From e4c43e11fdb4b1d097f424b6ca816e0bd6f599a7 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sun, 2 Mar 2025 10:52:48 +0900 Subject: [PATCH] chore(ci): fix jom md5 check - Currently md5sum failed with unknown md5sum file error - Uses pwsh syntax to check md5 hash Signed-off-by: Hiroshi Miura --- ci/steps.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ci/steps.yml b/ci/steps.yml index c121cd9..11f3232 100644 --- a/ci/steps.yml +++ b/ci/steps.yml @@ -244,11 +244,12 @@ steps: } cd $(WIN_QT_BINDIR) $jomurl = 'https://download.qt.io/official_releases/jom/' + $env:JOM - $md5sum = $env:MD5 + ' ' + $env:JOM Invoke-WebRequest -Uri $jomurl -OutFile $env:JOM - Set-Content -Encoding utf8 -Path md5sums.txt -Value $md5sum - md5sum -c md5sums.txt - unzip $env:JOM + if ((Get-FileHash $env:JOM -Algorithm MD5).Hash -eq $env:MD5) { + unzip $env:JOM + } else { + exit 1 + } condition: | and(eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['SUBCOMMAND'], 'install-qt'))