Skip to content

Commit

Permalink
Merge branch 'nuget-gpu-package'
Browse files Browse the repository at this point in the history
  • Loading branch information
dme-compunet committed Sep 8, 2023
2 parents 22bcc53 + 3f43541 commit 4b524e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish-to-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ jobs:
with:
dotnet-version: 7.0.x

- name: Restore Dependencies
run: dotnet restore Source/YoloV8/YoloV8.csproj

- name: Build
- name: Build YoloV8
run: dotnet build -c Release Source/YoloV8/YoloV8.csproj

- name: Pack
- name: Build YoloV8.Gpu
run: dotnet build -c ReleaseGPU Source/YoloV8/YoloV8.csproj

- name: Pack YoloV8
run: dotnet pack -c Release -o . Source/YoloV8/YoloV8.csproj

- name: Publish Nuget Package
- name: Pack YoloV8.Gpu
run: dotnet pack -c ReleaseGPU -o . Source/YoloV8/YoloV8.csproj

- name: Publish Nuget Packages
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
10 changes: 6 additions & 4 deletions Source/YoloV8/YoloV8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
<RootNamespace>Compunet.YoloV8</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<PropertyGroup Condition="'$(Configuration)' == 'Release' OR '$(Configuration)' == 'ReleaseGPU'">
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>YoloV8</Title>
<PackageId Condition="'$(Configuration)' == 'Release'">YoloV8</PackageId>
<PackageId Condition="'$(Configuration)' == 'ReleaseGPU'">YoloV8.Gpu</PackageId>
<Description>Use YOLOv8 in real-time, for object detection, instance segmentation, pose estimation and image classification, via ONNX Runtime</Description>
<RepositoryUrl>https://github.com/dme-compunet/YOLOv8</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>image-classification;object-detection;pose-estimation;instance-segmentation;onnx;imagesharp;onnx-runtime;ultralytics;yolov8</PackageTags>
<PackageIcon>Icon.png</PackageIcon>
<Authors>Compunet</Authors>
<Version>1.3.0</Version>
<Version>1.4.0</Version>
</PropertyGroup>

<ItemGroup>
Expand All @@ -27,7 +28,8 @@
<ItemGroup>
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0" />
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.15.1" />
<PackageReference Condition="'$(Configuration)' == 'Release'" Include="Microsoft.ML.OnnxRuntime" Version="1.15.1" />
<PackageReference Condition="'$(Configuration)' == 'ReleaseGPU'" Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.15.1" />
</ItemGroup>

</Project>

0 comments on commit 4b524e9

Please sign in to comment.