@@ -108,110 +108,7 @@ jobs:
108108 name : git-artifacts
109109 path : git-artifacts.tar.gz
110110 test-minimal-sdk :
111- runs-on : windows-latest
112- needs : [minimal-sdk-artifact]
113- strategy :
114- matrix :
115- # 0..16 permuted according to the matrix builds' timings as of git/git@9fadedd63
116- nr : [9, 6, 13, 0, 8, 5, 2, 16, 15, 11, 10, 1, 7, 3, 14, 12, 4]
117- fail-fast : false
118- steps :
119- - name : download minimal-sdk artifact
120- uses : actions/download-artifact@v4
121- with :
122- name : minimal-sdk
123- path : ${{github.workspace}}
124- - name : uncompress minimal-sdk
125- shell : bash
126- run : |
127- mkdir -p minimal-sdk &&
128- tar -C minimal-sdk -xzf git-sdk-x86_64-minimal.tar.gz &&
129- cygpath -aw minimal-sdk/usr/bin >>$GITHUB_PATH
130- - name : download git artifacts
131- uses : actions/download-artifact@v4
132- with :
133- name : git-artifacts
134- path : ${{github.workspace}}
135- - name : uncompress git-artifacts
136- shell : bash
137- env :
138- GIT_ARTIFACTS_EXTRACT_LOCATION : ${{ needs.minimal-sdk-artifact.outputs.git-artifacts-extract-location }}
139- run : |
140- mkdir -p "$GIT_ARTIFACTS_EXTRACT_LOCATION" &&
141- tar -C "$GIT_ARTIFACTS_EXTRACT_LOCATION" -xzf git-artifacts.tar.gz
142- - name : test
143- shell : bash
144- run : |
145- set -x
146- . /etc/profile
147- test "$(cygpath -aw /)" = "${{github.workspace}}\minimal-sdk" || exit 1
148- cd "$GIT_ARTIFACTS_EXTRACT_LOCATION"/git/t &&
149- make T="$(ls -S t[0-9]*.sh | awk '!((NR+${{matrix.nr}})%17)' | tr '\n' \ )" prove || {
150- for d in trash*
151- do
152- t=${d#trash directory.}
153- echo ===========================
154- echo Failed: $t.sh
155- cat test-results/$t.out
156- done
157- exit 1
158- }
159- env :
160- GIT_ARTIFACTS_EXTRACT_LOCATION : ${{ needs.minimal-sdk-artifact.outputs.git-artifacts-extract-location }}
161- PATH : ${{github.workspace}}\minimal-sdk\mingw64\bin;${{github.workspace}}\minimal-sdk\usr\bin;${{github.workspace}}\minimal-sdk\usr\bin\core_perl;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem
162- GIT_TEST_OPTS : --verbose-log -x --no-chain-lint
163- GIT_PROVE_OPTS : --timer --jobs 8
164- NO_SVN_TESTS : 1
165- assorted-validations :
166- runs-on : windows-latest
167111 needs : [minimal-sdk-artifact]
168- steps :
169- - name : download minimal-sdk artifact
170- uses : actions/download-artifact@v4
171- with :
172- name : minimal-sdk
173- path : ${{github.workspace}}
174- - name : uncompress minimal-sdk
175- shell : bash
176- run : |
177- mkdir -p minimal-sdk &&
178- tar -C minimal-sdk -xzf git-sdk-x86_64-minimal.tar.gz &&
179- cygpath -aw minimal-sdk/usr/bin >>$GITHUB_PATH
180- - name : run some tests
181- shell : bash
182- env :
183- PATH : ${{github.workspace}}\minimal-sdk\mingw64\bin;${{github.workspace}}\minimal-sdk\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem
184- run : |
185- set -x
186- . /etc/profile
187-
188- # cygpath works
189- test "$(cygpath -aw /)" = "${{github.workspace}}\minimal-sdk" || exit 1
190-
191- # comes with GCC and can compile a DLL
192- test "$(type -p gcc)" = "/mingw64/bin/gcc" || exit 1
193- cat >dll.c <<-\EOF &&
194- __attribute__((dllexport)) int increment(int i)
195- {
196- return i + 1;
197- }
198- EOF
199-
200- gcc -Wall -g -O2 -shared -o sample.dll dll.c || exit 1
201- ls -la
202-
203- # stat works
204- test "stat is /usr/bin/stat" = "$(type stat)" || exit 1
205- stat /usr/bin/stat.exe || exit 1
206-
207- # unzip works
208- test "unzip is /usr/bin/unzip" = "$(type unzip)" || exit 1
209- git init unzip-test &&
210- echo TEST >unzip-test/README &&
211- git -C unzip-test add -A &&
212- git -C unzip-test -c user.name=A -c [email protected] commit -m 'Testing, testing...' && 213- git --git-dir=unzip-test/.git archive -o test.zip HEAD &&
214- unzip -v test.zip >unzip-test.out &&
215- cat unzip-test.out &&
216- test "grep is /usr/bin/grep" = "$(type grep)" || exit 1
217- grep README unzip-test.out
112+ uses : git-for-windows/git-sdk-64/.github/workflows/test-ci-artifacts.yml@main
113+ with :
114+ git-artifacts-extract-location : ${{ needs.minimal-sdk-artifact.outputs.git-artifacts-extract-location }}
0 commit comments