Skip to content

Commit 951ba37

Browse files
committed
ci: build supported Git for Cygwin tests
The Cygwin performance job failed all six setup phases because the Cygwin package currently supplies Git 2.51.0, below the new Git 2.52 minimum. The same mismatch prevents the regular Cygwin suite from opening repositories. Build upstream Git `v2.52.0` with Cygwin tools and install it in `/usr/local` before preparing the fixtures. Include the HTTPS development dependencies so the existing clone and remote tests retain network transport support. Verify that the selected `git` is the built version before continuing. Validation: the workflow parses as YAML, the added shell block passes `bash -n` and ShellCheck, and `git diff --check` passes. The native Cygwin build and test suites require the Windows CI runner.
1 parent 73d6632 commit 951ba37

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/cygwin-test.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,24 @@ jobs:
4545
- name: Install Cygwin
4646
uses: cygwin/cygwin-install-action@v6
4747
with:
48-
packages: curl git python39 python-setuptools-wheel
48+
packages: >-
49+
curl gcc-core git libcurl-devel libexpat-devel libiconv-devel
50+
libssl-devel make python39 python-setuptools-wheel zlib-devel
4951
add-to-path: false # No need to change $PATH outside the Cygwin environment.
5052

5153
- name: Arrange for verbose output
5254
run: |
5355
# Arrange for verbose output but without shell environment setup details.
5456
echo 'set -x' >~/.bash_profile
5557
58+
- name: Build minimum supported Cygwin Git
59+
run: |
60+
# Cygwin's packaged Git is older than our minimum supported version.
61+
git clone --depth 1 --branch v2.52.0 -- https://github.com/git/git.git /tmp/git-source
62+
make -C /tmp/git-source -j2 prefix=/usr/local NO_GETTEXT=YesPlease NO_TCLTK=YesPlease NO_PERL=YesPlease install
63+
hash -r
64+
test "$(git version)" = 'git version 2.52.0'
65+
5666
- name: Special configuration for Cygwin git
5767
run: |
5868
git config --global --add safe.directory "$(pwd)"

0 commit comments

Comments
 (0)