From: Patrick Steinhardt Date: Wed, 11 Nov 2026 10:47:52 GMT Subject: [PATCH v3 1/7] gitlab-ci: speed up installation of Git for Windows SDK Message-ID: <20261111-pks-gitlab-ci-speedups-v3-1-d1e34117ee2e@pks.im> In-Reply-To: <20261111-pks-gitlab-ci-speedups-v3-0-d1e34117ee2e@pks.im> The "build:mingw64" job on GitLab CI downloads the minimal Git for Windows SDK on every run and then extracts it via `Expand-Archive`, which is expensive. Improve this by using tar(1) instead of `Expand-Archive`. Note that we're using it to extract a ZIP archive, which may seem puzzling at first. But Windows ships bsdtar by default [1], which also supports ZIP and 7zip files. While at it, make the script error on failures and suppress progress output. [1]: https://learn.microsoft.com/en-us/windows/tar/ Signed-off-by: Patrick Steinhardt --- ci/install-sdk.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/install-sdk.ps1 b/ci/install-sdk.ps1 index 66f24838a40..bb332c1c10f 100755 --- a/ci/install-sdk.ps1 +++ b/ci/install-sdk.ps1 @@ -3,8 +3,12 @@ param( [string]$url='https://github.com/git-for-windows/git-sdk-64/releases/download/ci-artifacts/git-sdk-x86_64-minimal.zip' ) +$ErrorActionPreference = 'Stop' +$ProgressPreference = 'SilentlyContinue' + Invoke-WebRequest "$url" -OutFile git-sdk.zip -Expand-Archive -LiteralPath git-sdk.zip -DestinationPath "$directory" +New-Item -Path $directory -ItemType Directory -Force +tar -xf git-sdk.zip -C $directory Remove-Item -Path git-sdk.zip New-Item -Path .git/info -ItemType Directory -Force -- 2.56.0.611.g1030f0b940.dirty