12
12
- uses : actions/checkout@v1
13
13
- name : download git-sdk-64-minimal
14
14
shell : bash
15
- 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 -
15
+ run : |
16
+ ## Get artifact
17
+ urlbase=https://dev.azure.com/git-for-windows/git/_apis/build/builds
18
+ id=$(curl "$urlbase?definitions=22&statusFilter=completed&resultFilter=succeeded&\$top=1" |
19
+ jq -r ".value[] | .id")
20
+ download_url="$(curl "$urlbase/$id/artifacts" |
21
+ jq -r '.value[] | select(.name == "git-sdk-64-minimal").resource.downloadUrl')"
22
+ curl --connect-timeout 10 --retry 5 --retry-delay 0 --retry-max-time 240 \
23
+ -o artifacts.zip "$download_url"
24
+
25
+ ## Unzip and remove the artifact
26
+ unzip artifacts.zip
27
+ rm artifacts.zip
16
28
- name : build
17
29
shell : powershell
18
30
env :
30
42
with :
31
43
name : windows-artifacts
32
44
path : artifacts
45
+ - name : upload git-sdk-64-minimal
46
+ uses : actions/upload-artifact@v1
47
+ with :
48
+ name : git-sdk-64-minimal
49
+ path : git-sdk-64-minimal
33
50
windows-test :
34
51
runs-on : windows-latest
35
52
needs : [windows-build]
38
55
nr : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
39
56
steps :
40
57
- uses : actions/checkout@v1
41
- - name : download git-sdk-64-minimal
42
- shell : bash
43
- 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 -
44
58
- name : download build artifacts
45
59
uses : actions/download-artifact@v1
46
60
with :
49
63
- name : extract build artifacts
50
64
shell : bash
51
65
run : tar xf artifacts.tar.gz
66
+ - name : download git-sdk-64-minimal
67
+ uses : actions/download-artifact@v1
68
+ with :
69
+ name : git-sdk-64-minimal
70
+ path : ${{github.workspace}}/git-sdk-64-minimal/
52
71
- name : test
53
72
shell : powershell
54
73
run : |
79
98
- uses : actions/checkout@v1
80
99
- name : download git-sdk-64-minimal
81
100
shell : bash
82
- 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 -
101
+ run : |
102
+ ## Get artifact
103
+ urlbase=https://dev.azure.com/git-for-windows/git/_apis/build/builds
104
+ id=$(curl "$urlbase?definitions=22&statusFilter=completed&resultFilter=succeeded&\$top=1" |
105
+ jq -r ".value[] | .id")
106
+ download_url="$(curl "$urlbase/$id/artifacts" |
107
+ jq -r '.value[] | select(.name == "git-sdk-64-minimal").resource.downloadUrl')"
108
+ curl --connect-timeout 10 --retry 5 --retry-delay 0 --retry-max-time 240 \
109
+ -o artifacts.zip "$download_url"
110
+
111
+ ## Unzip and remove the artifact
112
+ unzip artifacts.zip
113
+ rm artifacts.zip
83
114
- name : generate Visual Studio solution
84
115
shell : powershell
85
116
run : |
@@ -119,15 +150,17 @@ jobs:
119
150
path : artifacts
120
151
vs-test :
121
152
runs-on : windows-latest
122
- needs : [vs-build]
153
+ needs : [vs-build, windows-build ]
123
154
strategy :
124
155
matrix :
125
156
nr : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
126
157
steps :
127
158
- uses : actions/checkout@v1
128
- - name : download git-64-portable
129
- shell : bash
130
- run : a=git-64-portable && mkdir -p $a && curl -# https://wingit.blob.core.windows.net/ci-artifacts/$a.tar.xz | tar -C $a -xJf -
159
+ - name : download git-sdk-64-minimal
160
+ uses : actions/download-artifact@v1
161
+ with :
162
+ name : git-sdk-64-minimal
163
+ path : ${{github.workspace}}/git-sdk-64-minimal/
131
164
- name : download build artifacts
132
165
uses : actions/download-artifact@v1
133
166
with :
@@ -143,9 +176,9 @@ jobs:
143
176
NO_SVN_TESTS : 1
144
177
GIT_TEST_SKIP_REBASE_P : 1
145
178
run : |
146
- & git-64-portable \git-cmd.exe --command= usr\bin\bash.exe -lc @"
179
+ & . \git-sdk-64-minimal\ usr\bin\bash.exe -lc @"
147
180
# Let Git ignore the SDK and the test-cache
148
- printf '%s\n' /git-64-portable / /test-cache/ >>.git/info/exclude
181
+ printf '%s\n' /git-sdk- 64-minimal / /test-cache/ >>.git/info/exclude
149
182
150
183
cd t &&
151
184
PATH=\"`$PWD/helper:`$PATH\" &&
0 commit comments