ci: bump git-for-windows/setup-git-for-windows-sdk from v1 to v2

The v1 of `git-for-windows/setup-git-for-windows-sdk` runs on Node.js 20, which GitHub is phasing out of the Actions runners. v2 moves the action to Node.js 24 so that the CI jobs relying on a Git for Windows SDK keep working once Node.js 20 is removed. The risk is very low: v2 contains no functional changes to the SDK setup itself, only the runtime upgrade. The action still provisions the same minimal SDK and exposes the same outputs. The sole precondition is a recent Actions Runner (>= 2.327.1), which the github.com-hosted runners already satisfy. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Apr 30, 2026 at 07:34 UTC 7e6ede6ce11430d2c6f314005926d91f0a68c2f8
2 files changed +5 -5
.github/workflows/coverity.yml
+1 -1
@@ -41,7 +41,7 @@ jobs:
41 - uses: actions/checkout@v6
42 - name: install minimal Git for Windows SDK
43 if: contains(matrix.os, 'windows')
44 - uses: git-for-windows/setup-git-for-windows-sdk@v1
44 + uses: git-for-windows/setup-git-for-windows-sdk@v2
45 - run: ci/install-dependencies.sh
46 if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
47 env:
.github/workflows/main.yml
+4 -4
@@ -113,7 +113,7 @@ jobs:
113 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
114 steps:
115 - uses: actions/checkout@v6
116 - - uses: git-for-windows/setup-git-for-windows-sdk@v1
116 + - uses: git-for-windows/setup-git-for-windows-sdk@v2
117 - name: build
118 shell: bash
119 env:
@@ -147,7 +147,7 @@ jobs:
147 - name: extract tracked files and build artifacts
148 shell: bash
149 run: tar xf artifacts.tar.gz && tar xf tracked.tar.gz
150 - - uses: git-for-windows/setup-git-for-windows-sdk@v1
150 + - uses: git-for-windows/setup-git-for-windows-sdk@v2
151 - name: test
152 shell: bash
153 run: . /etc/profile && ci/run-test-slice.sh $((${{matrix.nr}} + 1)) 10
@@ -174,7 +174,7 @@ jobs:
174 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
175 steps:
176 - uses: actions/checkout@v6
177 - - uses: git-for-windows/setup-git-for-windows-sdk@v1
177 + - uses: git-for-windows/setup-git-for-windows-sdk@v2
178 - name: initialize vcpkg
179 uses: actions/checkout@v6
180 with:
@@ -224,7 +224,7 @@ jobs:
224 group: vs-test-${{ matrix.nr }}-${{ github.ref }}
225 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
226 steps:
227 - - uses: git-for-windows/setup-git-for-windows-sdk@v1
227 + - uses: git-for-windows/setup-git-for-windows-sdk@v2
228 - name: download tracked files and build artifacts
229 uses: actions/download-artifact@v8
230 with: