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

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

View file

@ -15,7 +15,13 @@
</PackageReference> </PackageReference>
</ItemGroup> </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)"/> <PackageReference Include="Raylib-cs" Version="$(RaylibCsVersion)"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

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