]> git.ipfire.org Git - thirdparty/git.git/commit
ci: modification of main.yml to use cmake for vs-build job
authorSibi Siddharthan <sibisiv.siddharthan@gmail.com>
Fri, 26 Jun 2020 16:11:38 +0000 (16:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Jun 2020 17:08:46 +0000 (10:08 -0700)
commit4c2c38e800f38bceb1039af2c2ac7b1082fd2e0b
tree1293169bdf16b8c103388fdeab6f68e4c982b76e
parent7f475e2780fe3bf753372af9e8f33cff5df2e589
ci: modification of main.yml to use cmake for vs-build job

Teach .github/workflows/main.yml to use CMake for VS builds.

Modified the vs-test step to match windows-test step. This speeds
up the vs-test. Calling git-cmd from powershell and then calling git-bash
to perform the tests slows things down(factor of about 6). So git-bash
is directly called from powershell to perform the tests using prove.

NOTE: Since GitHub keeps the same directory for each job
(with respect to path) absolute paths are used in the bin-wrapper
scripts.

GitHub has switched to CMake 3.17.1 which changed the behaviour of
FindCURL module. An extra definition (-DCURL_NO_CURL_CMAKE=ON) has been
added to revert to the old behaviour.

In the configuration phase CMake looks for the required libraries for
building git (eg zlib,libiconv). So we extract the libraries before we
configure.

To check for ICONV_OMITS_BOM libiconv.dll needs to be in the working
directory of script or path. So we copy the dlls before we configure.

Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/main.yml