Skip to content

Commit

Permalink
Update bcny-ci.yml (#3)
Browse files Browse the repository at this point in the history
Add initial packaging step for the nupkg
  • Loading branch information
compnerd authored and z2oh committed Mar 14, 2024
1 parent 2d7156e commit 4dfb69b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/bcny-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,38 @@ jobs:
with:
name: sentry-native-windows-${{ matrix.arch }}
path: sentry-native-development

- name: Package Sentry
run: |
$suffix = "${{ matrix.arch }}".ToLower()
@"
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>io.sentry.sentry-native.win.crashpad.$suffix</id>
<version>0.0.0.0</version>
<title>Sentry Native SDK</title>
<description>C++ Sentry Native SDK</description>
<authors>Functional Software, Inc.</authors>
<projectUrl>https://github.com/getsentry/sentry-native</projectUrl>
<repository type="git" url="https://github.com/getsentry/sentry-native" branch="main" />
</metadata>
<files>
<file src="`$DESTDIR`$\bin\crashpad_handler.exe" target="bin" />
<file src="`$DESTDIR`$\bin\crashpad_handler.pdb" target="bin" />
<file src="`$DESTDIR`$\bin\crashpad_wer.dll" target="bin" />
<file src="`$DESTDIR`$\bin\crashpad_wer.pdb" target="bin" />
<file src="`$DESTDIR`$\bin\sentry.dll" target="bin" />
<file src="`$DESTDIR`$\bin\sentry.pdb" target="bin" />
<file src="`$DESTDIR`$\lib\sentry.lib" target="lib" />
<file src="`$DESTDIR`$\include\sentry.h" target="include" />
</files>
</package>
"@ | Out-File -Encoding UTF8 sentry.nuspec
nuget pack -Properties DESTDIR=sentry-native-development\usr -Suffix (git log -1 --format=%h) sentry.nuspec
shell: pwsh

- uses: actions/upload-artifact@v3
with:
name: windows-${{ matrix.arch }}.nupkg
path: io.sentry.sentry-native.win.*.0.0.0-*.nupkg

0 comments on commit 4dfb69b

Please sign in to comment.