From d6d8512895187d2c18995a34326a51f9a6258375 Mon Sep 17 00:00:00 2001 From: anggape Date: Mon, 14 Aug 2023 00:41:35 +0700 Subject: [PATCH] allow skip local build --- .github/workflows/build.yml | 2 +- Raylib-cs/Raylib-cs.csproj | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a22e2b4..f641b3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -171,7 +171,7 @@ jobs: dotnet-version: 6.0.x - name: Create NuGet Package - run: dotnet pack -c Release Raylib-cs + run: dotnet pack -c Release Raylib-cs -p:SkipLocalBuild=true - name: Upload NuGet Package As Artifact uses: actions/upload-artifact@v3 diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index 5acad77..117dff9 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -77,7 +77,8 @@ + CopyToOutputDirectory="PreserveNewest" + Condition="Exists('$(IntermediateOutputPath)native/raylib/$(NativePre)raylib.$(NativeExt)')" /> @@ -85,7 +86,7 @@ - + - +