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

allow skip local build

This commit is contained in:
anggape 2023-08-14 00:41:35 +07:00
commit d6d8512895
No known key found for this signature in database
GPG key ID: 318EF680D0181D86
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -77,7 +77,8 @@
<Content
Include="$(IntermediateOutputPath)native/raylib/$(NativePre)raylib.$(NativeExt)"
Link="%(Filename)%(Extension)"
CopyToOutputDirectory="PreserveNewest" />
CopyToOutputDirectory="PreserveNewest"
Condition="Exists('$(IntermediateOutputPath)native/raylib/$(NativePre)raylib.$(NativeExt)')" />
<CMakeArgs Include="-B $(IntermediateOutputPath)native" />
<CMakeArgs Include="-S $(IntermediateOutputPath)raylib-$(TargetRaylibTag)" />
<CMakeArgs Include="-D CMAKE_BUILD_TYPE=$(Configuration)" />
@ -85,7 +86,7 @@
<CMakeArgs Include="-D BUILD_EXAMPLES=OFF" />
</ItemGroup>
<Target Name="ConfigureNative" BeforeTargets="BuildNative">
<Target Name="ConfigureNative" BeforeTargets="BuildNative" Condition="$(SkipLocalBuild) != true">
<DownloadFile
SourceUrl="https://github.com/raysan5/raylib/archive/refs/tags/$(TargetRaylibTag).zip"
DestinationFolder="$(IntermediateOutputPath)"
@ -100,7 +101,7 @@
Condition="!Exists('$(IntermediateOutputPath)native/CMakeCache.txt')" />
</Target>
<Target Name="BuildNative" BeforeTargets="BeforeBuild">
<Target Name="BuildNative" BeforeTargets="BeforeBuild" Condition="$(SkipLocalBuild) != true">
<Exec Command="cmake --build $(IntermediateOutputPath)native --config $(Configuration)" />
</Target>