44
44
- uses : actions/checkout@v1
45
45
- name : download git-sdk-64-minimal
46
46
shell : bash
47
- run : a=git-sdk-64-minimal && mkdir -p $a && curl -# https://wingit.blob.core.windows.net/ci-artifacts/$a.tar.xz | tar -C $a -xJf -
47
+ run : |
48
+ ## Get artifact
49
+ urlbase=https://dev.azure.com/git-for-windows/git/_apis/build/builds
50
+ id=$(curl "$urlbase?definitions=22&statusFilter=completed&resultFilter=succeeded&\$top=1" |
51
+ jq -r ".value[] | .id")
52
+ download_url="$(curl "$urlbase/$id/artifacts" |
53
+ jq -r '.value[] | select(.name == "git-sdk-64-minimal").resource.downloadUrl')"
54
+ curl --connect-timeout 10 --retry 5 --retry-delay 0 --retry-max-time 240 \
55
+ -o artifacts.zip "$download_url"
56
+
57
+ ## Unzip and remove the artifact
58
+ unzip artifacts.zip
59
+ rm artifacts.zip
48
60
- name : build
49
61
shell : powershell
50
62
env :
62
74
with :
63
75
name : windows-artifacts
64
76
path : artifacts
77
+ - name : upload git-sdk-64-minimal
78
+ uses : actions/upload-artifact@v1
79
+ with :
80
+ name : git-sdk-64-minimal
81
+ path : git-sdk-64-minimal
65
82
windows-test :
66
83
runs-on : windows-latest
67
84
needs : [windows-build]
70
87
nr : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
71
88
steps :
72
89
- uses : actions/checkout@v1
73
- - name : download git-sdk-64-minimal
74
- shell : bash
75
- run : a=git-sdk-64-minimal && mkdir -p $a && curl -# https://wingit.blob.core.windows.net/ci-artifacts/$a.tar.xz | tar -C $a -xJf -
76
90
- name : download build artifacts
77
91
uses : actions/download-artifact@v1
78
92
with :
81
95
- name : extract build artifacts
82
96
shell : bash
83
97
run : tar xf artifacts.tar.gz
98
+ - name : download git-sdk-64-minimal
99
+ uses : actions/download-artifact@v1
100
+ with :
101
+ name : git-sdk-64-minimal
102
+ path : ${{github.workspace}}/git-sdk-64-minimal/
84
103
- name : test
85
104
shell : powershell
86
105
run : |
@@ -113,7 +132,19 @@ jobs:
113
132
- uses : actions/checkout@v1
114
133
- name : download git-sdk-64-minimal
115
134
shell : bash
116
- run : a=git-sdk-64-minimal && mkdir -p $a && curl -# https://wingit.blob.core.windows.net/ci-artifacts/$a.tar.xz | tar -C $a -xJf -
135
+ run : |
136
+ ## Get artifact
137
+ urlbase=https://dev.azure.com/git-for-windows/git/_apis/build/builds
138
+ id=$(curl "$urlbase?definitions=22&statusFilter=completed&resultFilter=succeeded&\$top=1" |
139
+ jq -r ".value[] | .id")
140
+ download_url="$(curl "$urlbase/$id/artifacts" |
141
+ jq -r '.value[] | select(.name == "git-sdk-64-minimal").resource.downloadUrl')"
142
+ curl --connect-timeout 10 --retry 5 --retry-delay 0 --retry-max-time 240 \
143
+ -o artifacts.zip "$download_url"
144
+
145
+ ## Unzip and remove the artifact
146
+ unzip artifacts.zip
147
+ rm artifacts.zip
117
148
- name : generate Visual Studio solution
118
149
shell : powershell
119
150
run : |
@@ -153,15 +184,17 @@ jobs:
153
184
path : artifacts
154
185
vs-test :
155
186
runs-on : windows-latest
156
- needs : [vs-build]
187
+ needs : [vs-build, windows-build ]
157
188
strategy :
158
189
matrix :
159
190
nr : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
160
191
steps :
161
192
- uses : actions/checkout@v1
162
- - name : download git-64-portable
163
- shell : bash
164
- run : a=git-64-portable && mkdir -p $a && curl -# https://wingit.blob.core.windows.net/ci-artifacts/$a.tar.xz | tar -C $a -xJf -
193
+ - name : download git-sdk-64-minimal
194
+ uses : actions/download-artifact@v1
195
+ with :
196
+ name : git-sdk-64-minimal
197
+ path : ${{github.workspace}}/git-sdk-64-minimal/
165
198
- name : download build artifacts
166
199
uses : actions/download-artifact@v1
167
200
with :
@@ -177,9 +210,9 @@ jobs:
177
210
NO_SVN_TESTS : 1
178
211
GIT_TEST_SKIP_REBASE_P : 1
179
212
run : |
180
- & git-64-portable \git-cmd.exe --command= usr\bin\bash.exe -lc @"
213
+ & . \git-sdk-64-minimal\ usr\bin\bash.exe -lc @"
181
214
# Let Git ignore the SDK and the test-cache
182
- printf '%s\n' /git-64-portable / /test-cache/ >>.git/info/exclude
215
+ printf '%s\n' /git-sdk- 64-minimal / /test-cache/ >>.git/info/exclude
183
216
184
217
cd t &&
185
218
PATH=\"`$PWD/helper:`$PATH\" &&
0 commit comments