Skip to content

Commit 79d9e68

Browse files
committed
git-artifacts: also build the nuget package
The two NuGet artifact exists only in the 64-bit version. So let's make them in a separate, non-matrix job. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 680b439 commit 79d9e68

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/git-artifacts.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,39 @@ jobs:
243243
with:
244244
name: ${{matrix.artifact.name}}-${{matrix.arch.name}}
245245
path: artifacts
246+
nuget:
247+
runs-on: windows-latest
248+
needs: pkg
249+
steps:
250+
- name: Download pkg-x86_64
251+
uses: actions/download-artifact@v1
252+
with:
253+
name: pkg-x86_64
254+
path: pkg-x86_64
255+
- name: Download bundle-artifacts
256+
uses: actions/download-artifact@v1
257+
with:
258+
name: bundle-artifacts
259+
path: bundle-artifacts
260+
- name: Download git-sdk-64-build-installers
261+
shell: bash
262+
run: a=git-sdk-64-build-installers && mkdir -p $a && curl -# https://wingit.blob.core.windows.net/ci-artifacts/$a.tar.xz | tar -C $a -xJf -
263+
- name: Clone build-extra
264+
run: git clone --single-branch -b master https://github.com/git-for-windows/build-extra git-sdk-64-build-installers\usr\src\build-extra
265+
- uses: nuget/setup-nuget@v1
266+
- name: Build 64-bit NuGet packages
267+
shell: powershell
268+
run: |
269+
& .\git-sdk-64-build-installers\usr\bin\bash.exe -lc @"
270+
set -x
271+
# Update the release notes
272+
git -C /usr/src/build-extra pull \"`$PWD\"/bundle-artifacts/build-extra.bundle master &&
273+
/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 &&
274+
/usr/src/build-extra/please.sh make_installers_from_mingw_w64_git --version=`$(cat pkg-x86_64/ver) -o artifacts --nuget-mingit &&
275+
openssl dgst -sha256 artifacts/Git*.nupkg | sed \"s/.* //\" >artifacts/sha-256.txt
276+
"@
277+
- name: Publish nuget-x86_64
278+
uses: actions/upload-artifact@v1
279+
with:
280+
name: nuget-x86_64
281+
path: artifacts

0 commit comments

Comments
 (0)