Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,23 @@ jobs:

- name: Test
run: dotnet test BitNet-b1.58-Sharp.slnx --configuration Release --no-build --no-restore

- name: Pack BitNetSharp.Core
run: dotnet pack "${{ github.workspace }}/src/BitNetSharp.Core/BitNetSharp.Core.csproj" --configuration Release --no-build --no-restore -p:VersionSuffix=ci.${{ github.run_number }} --output "${{ github.workspace }}/artifacts/packages/core"

- name: Pack BitNetSharp.App dotnet tool
run: dotnet pack "${{ github.workspace }}/src/BitNetSharp.App/BitNetSharp.App.csproj" --configuration Release --no-build --no-restore -p:VersionSuffix=ci.${{ github.run_number }} --output "${{ github.workspace }}/artifacts/packages/tool"

- name: Upload BitNetSharp.Core package
uses: actions/upload-artifact@v4
with:
name: BitNetSharp.Core-nuget
path: ${{ github.workspace }}/artifacts/packages/core/*.nupkg
if-no-files-found: error

- name: Upload BitNetSharp.App tool package
uses: actions/upload-artifact@v4
with:
name: BitNetSharp.App-dotnet-tool
path: ${{ github.workspace }}/artifacts/packages/tool/*.nupkg
if-no-files-found: error
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>0.1.0</VersionPrefix>
</PropertyGroup>
</Project>
2 changes: 2 additions & 0 deletions src/BitNetSharp.App/BitNetSharp.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>bitnetsharp</ToolCommandName>
Comment thread
sharpninja marked this conversation as resolved.
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions src/BitNetSharp.Core/BitNetSharp.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>BitNetSharp.Core</PackageId>
Comment thread
sharpninja marked this conversation as resolved.
<Description>Paper-aligned BitNet b1.58 transformer runtime for .NET.</Description>
</PropertyGroup>

</Project>
Loading