Skip to content

Commit 02bc8cb

Browse files
authored
Merge pull request #1870 from EliahKagan/run-ci/test-fixtures-windows-rc
Use Git 2.49.0 release candidate in `test-fixtures-windows`
2 parents 10e41ee + 4237e5a commit 02bc8cb

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,36 @@ jobs:
165165
runs-on: windows-latest
166166

167167
steps:
168+
- name: Upgrade Git for Windows to latest (pre)release
169+
# This upgrades Git to work around https://github.com/GitoxideLabs/gitoxide/issues/1849.
170+
# TODO: Remove this step once the runner image has Git 2.49.0 or higher.
171+
env:
172+
GH_TOKEN: ${{ github.token }}
173+
run: |
174+
$workingDir = '~/git-dl'
175+
$repo = 'git-for-windows/git'
176+
$pattern = 'Git-*-64-bit.exe'
177+
$log = 'setup-log.txt'
178+
# Inno Setup args reference: https://jrsoftware.org/ishelp/index.php?topic=setupcmdline
179+
$arguments = @(
180+
'/VERYSILENT',
181+
'/SUPPRESSMSGBOXES',
182+
'/ALLUSERS',
183+
"/LOG=$log",
184+
'/NORESTART',
185+
'/CLOSEAPPLICATIONS',
186+
'/FORCECLOSEAPPLICATIONS'
187+
)
188+
189+
mkdir $workingDir | Out-Null
190+
cd $workingDir
191+
$newestTag = gh release list --repo $repo --limit 1 --json tagName --jq '.[0].tagName'
192+
gh release download $newestTag --repo $repo --pattern $pattern
193+
$installer = Get-Item $pattern
194+
Start-Process -FilePath $installer -ArgumentList $arguments -NoNewWindow -Wait
195+
196+
Get-Content -Path $log -Tail 50
197+
git version
168198
- uses: actions/checkout@v4
169199
- uses: dtolnay/rust-toolchain@stable
170200
- uses: Swatinem/rust-cache@v2

etc/test-fixtures-windows-expected-failures-see-issue-1358.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
gix-diff-tests::diff index::renames_by_identity
2-
gix-diff-tests::diff tree_with_rewrites::renames_by_identity
31
gix-glob::glob pattern::matching::compare_baseline_with_ours
4-
gix-merge::merge tree::run_baseline
52
gix-pathspec::pathspec parse::baseline
63
gix-pathspec::pathspec parse::valid::glob_negations_are_always_literal
74
gix-pathspec::pathspec parse::valid::whitespace_in_pathspec

0 commit comments

Comments
 (0)