12
- uses: actions/checkout@v1
13
- name: download git-sdk-64-minimal
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
28
- name: build
29
shell: powershell
30
env:
42
with:
43
name: windows-artifacts
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
50
windows-test:
51
runs-on: windows-latest
52
needs: [windows-build]
55
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
56
steps:
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 -
58
- name: download build artifacts
59
uses: actions/download-artifact@v1
60
with:
63
- name: extract build artifacts
64
shell: bash
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/
71
- name: test
72
shell: powershell
73
run: |
98
- uses: actions/checkout@v1
99
- name: download git-sdk-64-minimal
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
114
- name: generate Visual Studio solution
115
shell: powershell
116
run: |
150
path: artifacts
151
vs-test:
152
runs-on: windows-latest
122
- needs: [vs-build]
153
+ needs: [vs-build, windows-build]
154
strategy:
155
matrix:
156
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
157
steps:
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/
164
- name: download build artifacts
165
uses: actions/download-artifact@v1
166
with:
176
NO_SVN_TESTS: 1
177
GIT_TEST_SKIP_REBASE_P: 1
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 @"
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
182
183
cd t &&
184
PATH=\"`$PWD/helper:`$PATH\" &&