Default tests to local project reference. Can optionally use the nuget package.
This commit is contained in:
parent
6ac30f758f
commit
b207e633ae
3 changed files with 12 additions and 9 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ using Xunit;
|
|||
|
||||
namespace Raylib_cs.Tests;
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
public static class BlittableHelper
|
||||
{
|
||||
public static bool IsBlittable<T>()
|
||||
|
|
|
|||
Loading…
Reference in a new issue