@@ -327,3 +327,52 @@ jobs:
327327 with :
328328 name : ${{matrix.artifact.name}}-${{matrix.arch.name}}
329329 path : artifacts
330+ nuget :
331+ runs-on : windows-latest
332+ needs : pkg
333+ steps :
334+ - name : Download pkg-x86_64
335+ uses : actions/download-artifact@v1
336+ with :
337+ name : pkg-x86_64
338+ path : pkg-x86_64
339+ - name : Download bundle-artifacts
340+ uses : actions/download-artifact@v1
341+ with :
342+ name : bundle-artifacts
343+ path : bundle-artifacts
344+ - name : Download git-sdk-64-build-installers
345+ shell : bash
346+ run : |
347+ # Use Git Bash to download and unpack the artifact
348+
349+ ## Get artifact
350+ urlbase=https://dev.azure.com/git-for-windows/git/_apis/build/builds
351+ id=${{ needs.pkg.outputs.latest-sdk64-extra-build-id }}
352+ download_url=$(curl "$urlbase/$id/artifacts" |
353+ jq -r '.value[] | select(.name == "git-sdk-64-build-installers").resource.downloadUrl')
354+
355+ curl -o artifacts.zip "$download_url"
356+
357+ ## Unpack artifact
358+ unzip artifacts.zip
359+ - name : Clone and update build-extra
360+ shell : bash
361+ run : |
362+ d=git-sdk-64-build-installers/usr/src/build-extra &&
363+ git clone --single-branch -b main https://github.com/git-for-windows/build-extra $d &&
364+ git -C $d pull "$PWD"/bundle-artifacts/build-extra.bundle main
365+ - uses : nuget/setup-nuget@v1
366+ - name : Build 64-bit NuGet packages
367+ shell : powershell
368+ run : |
369+ & .\git-sdk-64-build-installers\usr\bin\bash.exe -lc @"
370+ /usr/src/build-extra/please.sh make_installers_from_mingw_w64_git --version=`$(cat pkg-x86_64/ver) -o artifacts --nuget --pkg=pkg-x86_64/mingw-w64-x86_64-git-[0-9]*.tar.xz --pkg=pkg-x86_64/mingw-w64-x86_64-git-doc-html-[0-9]*.tar.xz &&
371+ /usr/src/build-extra/please.sh make_installers_from_mingw_w64_git --version=`$(cat pkg-x86_64/ver) -o artifacts --nuget-mingit &&
372+ openssl dgst -sha256 artifacts/Git*.nupkg | sed \"s/.* //\" >artifacts/sha-256.txt
373+ "@
374+ - name : Publish nuget-x86_64
375+ uses : actions/upload-artifact@v1
376+ with :
377+ name : nuget-x86_64
378+ path : artifacts
0 commit comments