Watch
2
0
Fork
You've already forked raylib-cs
0

Default tests to local project reference. Can optionally use the nuget package.

This commit is contained in:
Rgebee 2026-07-21 07:58:12 +01:00
commit b207e633ae
3 changed files with 12 additions and 9 deletions

View file

@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Setup .NET
- name: Set up .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
@ -35,7 +35,6 @@ jobs:
- name: Create NuGet Package
run: dotnet pack Raylib-cs -c Release --output nuget
- name: Restore + Install Built Package
run: |
dotnet restore
@ -44,18 +43,18 @@ jobs:
run: |
dotnet test --verbosity normal
- name: upload NuGet Package As Artifact
- name: Upload NuGet Package As Artifact
uses: actions/upload-artifact@v7
with:
path: nuget/*
- name: upload NuGet Package As Release
- name: Upload NuGet Package As Release
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: nuget/*
- name: publish to NuGet
- name: Publish to NuGet
if: startsWith(github.ref, 'refs/tags/')
run: |
dotnet nuget push \

View file

@ -15,7 +15,13 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<ItemGroup Condition="'$(UseRaylibCsPackage)' != 'true'">
<ProjectReference Include="..\Raylib-cs\Raylib-cs.csproj"/>
</ItemGroup>
<Import Project="..\Raylib-cs\Raylib-cs.targets" Condition="'$(UseRaylibCsPackage)' != 'true'"/>
<ItemGroup Condition="'$(UseRaylibCsPackage)' == 'true'">
<PackageReference Include="Raylib-cs" Version="$(RaylibCsVersion)"/>
</ItemGroup>
</Project>

View file

@ -3,8 +3,6 @@ using Xunit;
namespace Raylib_cs.Tests;
using System.Collections.Generic;
public static class BlittableHelper
{
public static bool IsBlittable<T>()