File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ jobs:
129
129
vs-build :
130
130
needs : ci-config
131
131
if : needs.ci-config.outputs.enabled == 'yes'
132
+ timeout-minutes : 15
132
133
env :
133
134
NO_PERL : 1
134
135
GIT_CONFIG_PARAMETERS : " 'user.name=CI' 'user.email=ci@git'"
@@ -139,6 +140,11 @@ jobs:
139
140
steps :
140
141
- uses : actions/checkout@v2
141
142
- uses : git-for-windows/setup-git-for-windows-sdk@v1
143
+ - name : initialize vcpkg
144
+ uses : actions/checkout@v2
145
+ with :
146
+ repository : ' microsoft/vcpkg'
147
+ path : ' compat/vcbuild/vcpkg'
142
148
- name : download vcpkg artifacts
143
149
shell : powershell
144
150
run : |
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ if(WIN32)
58
58
59
59
# In the vcpkg edition, we need this to be able to link to libcurl
60
60
set (CURL_NO_CURL_CMAKE ON )
61
+
62
+ # Copy the necessary vcpkg DLLs (like iconv) to the install dir
63
+ set (X_VCPKG_APPLOCAL_DEPS_INSTALL ON )
64
+ set (CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR} /scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file" )
61
65
endif ()
62
66
63
67
find_program (SH_EXE sh PATHS "C:/Program Files/Git/bin" )
@@ -813,15 +817,19 @@ list(TRANSFORM git_shell_scripts PREPEND "${CMAKE_BINARY_DIR}/")
813
817
list (TRANSFORM git_perl_scripts PREPEND "${CMAKE_BINARY_DIR} /" )
814
818
815
819
#install
816
- install (TARGETS git git-shell
820
+ foreach (program ${PROGRAMS_BUILT} )
821
+ if (program STREQUAL "git" OR program STREQUAL "git-shell" )
822
+ install (TARGETS ${program}
817
823
RUNTIME DESTINATION bin )
824
+ else ()
825
+ install (TARGETS ${program}
826
+ RUNTIME DESTINATION libexec/git-core )
827
+ endif ()
828
+ endforeach ()
829
+
818
830
install (PROGRAMS ${CMAKE_BINARY_DIR} /git-cvsserver
819
831
DESTINATION bin )
820
832
821
- list (REMOVE_ITEM PROGRAMS_BUILT git git-shell )
822
- install (TARGETS ${PROGRAMS_BUILT}
823
- RUNTIME DESTINATION libexec/git-core )
824
-
825
833
set (bin_links
826
834
git-receive-pack git-upload-archive git-upload-pack )
827
835
You can’t perform that action at this time.
0 commit comments