Skip to content

Commit 1ef4c8f

Browse files
authored
Merge pull request #60 from hayattgd/main
Add an automated .NET build and dependency update
2 parents 40b1f59 + 460b419 commit 1ef4c8f

File tree

4 files changed

+73
-7
lines changed

4 files changed

+73
-7
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget"
4+
directory: "/ShapeEngine/"
5+
schedule:
6+
interval: "daily"

.github/workflows/dotnet.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: .NET Publish Examples
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
Build:
11+
env:
12+
dotnet-version: "8.0"
13+
strategy:
14+
matrix:
15+
os:
16+
- runs-on: windows-latest
17+
runtime: win-x64
18+
- runs-on: ubuntu-latest
19+
runtime: linux-x64
20+
- runs-on: macos-latest
21+
runtime: osx-arm64
22+
- runs-on: macos-13
23+
runtime: osx-x64
24+
25+
runs-on: ${{ matrix.os.runs-on }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Setup .NET
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: ${{ env.dotnet-version }}.x
32+
- name: Restore dependencies
33+
run: dotnet restore
34+
- name: Publish Examples
35+
run: dotnet publish --sc -r ${{ matrix.os.runtime }} ./ShapeEngine.sln
36+
- name: Upload a Build Artifact
37+
uses: actions/upload-artifact@v4.5.0
38+
with:
39+
name: ${{ matrix.os.runtime }}-Examples
40+
path: ./Examples/bin/Release/net${{ env.dotnet-version }}/${{ matrix.os.runtime }}/publish

Examples/Examples.csproj

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<OutputType>WinExe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
7+
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
88
<Nullable>enable</Nullable>
99
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1010
<ApplicationIcon>shape-engine.ico</ApplicationIcon>
@@ -19,10 +19,13 @@
1919
<ProjectReference Include="..\ShapeEngine\ShapeEngine.csproj" />
2020
</ItemGroup>
2121

22-
<ItemGroup>
23-
<Content Include="Resources\**">
24-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
25-
</Content>
26-
</ItemGroup>
27-
22+
<ItemGroup>
23+
<Content Include="Resources\**">
24+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
25+
</Content>
26+
<Content Include="../NOTICE.txt">
27+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
28+
</Content>
29+
</ItemGroup>
30+
2831
</Project>

NOTICE.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Copyright (C) 2018-2025 raylib-cs
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.

0 commit comments

Comments
 (0)