Skip to content

Commit 055ba7a

Browse files
author
Alexis Huvier
committed
Create SharpEngine.SQLite
0 parents  commit 055ba7a

File tree

14 files changed

+298
-0
lines changed

14 files changed

+298
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
8+
release:
9+
types:
10+
- published # Run the workflow when a new GitHub release is published
11+
12+
env:
13+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
14+
DOTNET_NOLOGO: true
15+
NuGetDirectory: ${{ github.workspace}}/nuget
16+
17+
defaults:
18+
run:
19+
shell: pwsh
20+
21+
jobs:
22+
create_nuget:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup .NET
30+
uses: actions/setup-dotnet@v3
31+
32+
- name: Restore
33+
run: dotnet restore
34+
35+
- name: Build
36+
run: dotnet build SharpEngine.Steamworks/SharpEngine.Steamworks.csproj -c Release
37+
38+
- name: Pack Nuget
39+
run: dotnet pack SharpEngine.Steamworks/SharpEngine.Steamworks.csproj -c Release --no-build --output ${{ env.NuGetDirectory }}
40+
41+
- uses: actions/upload-artifact@v3
42+
with:
43+
name: nuget
44+
if-no-files-found: error
45+
retention-days: 7
46+
path: ${{ env.NuGetDirectory }}/*.nupkg
47+
48+
validate_nuget:
49+
runs-on: ubuntu-latest
50+
needs: [ create_nuget ]
51+
steps:
52+
- name: Setup .NET
53+
uses: actions/setup-dotnet@v3
54+
55+
- uses: actions/download-artifact@v3
56+
with:
57+
name: nuget
58+
path: ${{ env.NuGetDirectory }}
59+
60+
- name: Install nuget validator
61+
run: dotnet tool update Meziantou.Framework.NuGetPackageValidation.Tool --global
62+
63+
- name: Validate package
64+
run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NuGetDirectory }}/*.nupkg")
65+
continue-on-error: true
66+
67+
run_test:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v3
71+
- name: Setup .NET
72+
uses: actions/setup-dotnet@v3
73+
- name: Run tests
74+
run: dotnet test --configuration Release
75+
76+
deploy:
77+
runs-on: ubuntu-latest
78+
needs: [ validate_nuget, run_test ]
79+
steps:
80+
- uses: actions/download-artifact@v3
81+
with:
82+
name: nuget
83+
path: ${{ env.NuGetDirectory }}
84+
85+
- name: Setup .NET
86+
uses: actions/setup-dotnet@v3
87+
88+
- name: Publish NuGet package
89+
run: |
90+
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
91+
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
92+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin/
2+
obj/
3+
/packages/
4+
riderModule.iml
5+
/_ReSharper.Caches/

.idea/.idea.SharpEngine.SQLite/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.SharpEngine.SQLite/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.SharpEngine.SQLite/.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.SharpEngine.SQLite/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
### Légende
4+
[+] Add<br>
5+
[\~] Modification<br>
6+
[-] Suppression<br>
7+
[#] Bug Fixes<br>
8+
[.] Others
9+
10+
### V 1.0.0 - 14/08/2023
11+
[.] First version

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SharpEngine.SQLite
2+
3+
SQLite Package for SharpEngine - C# 2D Game Engine
4+
5+
## Installation, Download, Usage
6+
7+
*Coming Soon*
8+
9+
## Dependencies
10+
11+
- Net7
12+
- SharpEngine.Core
13+
- System.Data.SQLite

SharpEngine.SQLite.sln

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpEngine.SQLite", "SharpEngine.SQLite\SharpEngine.SQLite.csproj", "{1D8F8395-AA6A-48C5-842B-927357CE4C60}"
4+
EndProject
5+
Global
6+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7+
Debug|Any CPU = Debug|Any CPU
8+
Release|Any CPU = Release|Any CPU
9+
EndGlobalSection
10+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
11+
{1D8F8395-AA6A-48C5-842B-927357CE4C60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12+
{1D8F8395-AA6A-48C5-842B-927357CE4C60}.Debug|Any CPU.Build.0 = Debug|Any CPU
13+
{1D8F8395-AA6A-48C5-842B-927357CE4C60}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{1D8F8395-AA6A-48C5-842B-927357CE4C60}.Release|Any CPU.Build.0 = Release|Any CPU
15+
EndGlobalSection
16+
EndGlobal

SharpEngine.SQLite/SESQLite.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using SharpEngine.Core.Manager;
2+
3+
namespace SharpEngine.SQLite;
4+
5+
/// <summary>
6+
/// Static class with extensions and add version functions
7+
/// </summary>
8+
public class SESQLite
9+
{
10+
/// <summary>
11+
/// Add versions to DebugManager
12+
/// </summary>
13+
public static void AddVersions()
14+
{
15+
DebugManager.Versions.Add("System.Data.SQLite", "1.0.118");
16+
DebugManager.Versions.Add("SharpEngine.SQLite", "1.0.0");
17+
}
18+
19+
}

0 commit comments

Comments
 (0)