Skip to content

Commit

Permalink
Merge pull request #1 from B3zaleel/setup-project
Browse files Browse the repository at this point in the history
Setup project
  • Loading branch information
B3zaleel authored Jul 14, 2024
2 parents 4294170 + ae88c30 commit 43c10bc
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 0 deletions.
364 changes: 364 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
push:
branches: ["main"]
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
name: Build Project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Run build process
run: dotnet build
21 changes: 21 additions & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Formatting

on:
push:
branches: ["main"]
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
name: Check Project Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Run format checking process
run: dotnet format --verify-no-changes
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Draco-Sharp

[![Build](https://github.com/b3zaleel/draco-sharp/actions/workflows/build.yaml/badge.svg)](https://github.com/b3zaleel/draco-sharp/actions/workflows/build.yaml)

A port of Google's [Draco](https://github.com/google/draco) library in C#.
34 changes: 34 additions & 0 deletions draco-sharp.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EF76C146-970B-484E-8B81-8DAFC6D340C6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Draco", "src\Draco\Draco.csproj", "{A3CAE5F2-C72A-4935-AFF2-0B6FD8DBD702}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Draco.Examples", "src\Draco.Examples\Draco.Examples.csproj", "{E2DB44FA-4161-48B0-A422-0EE47197FDD5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A3CAE5F2-C72A-4935-AFF2-0B6FD8DBD702}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3CAE5F2-C72A-4935-AFF2-0B6FD8DBD702}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3CAE5F2-C72A-4935-AFF2-0B6FD8DBD702}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3CAE5F2-C72A-4935-AFF2-0B6FD8DBD702}.Release|Any CPU.Build.0 = Release|Any CPU
{E2DB44FA-4161-48B0-A422-0EE47197FDD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E2DB44FA-4161-48B0-A422-0EE47197FDD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2DB44FA-4161-48B0-A422-0EE47197FDD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E2DB44FA-4161-48B0-A422-0EE47197FDD5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A3CAE5F2-C72A-4935-AFF2-0B6FD8DBD702} = {EF76C146-970B-484E-8B81-8DAFC6D340C6}
{E2DB44FA-4161-48B0-A422-0EE47197FDD5} = {EF76C146-970B-484E-8B81-8DAFC6D340C6}
EndGlobalSection
EndGlobal
14 changes: 14 additions & 0 deletions src/Draco.Examples/Draco.Examples.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Draco\Draco.csproj" />
</ItemGroup>

</Project>
8 changes: 8 additions & 0 deletions src/Draco.Examples/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Draco.Examples;

public static class Program
{
public static void Main()
{
}
}
24 changes: 24 additions & 0 deletions src/Draco/Draco.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Draco</PackageId>
<Version>0.1.0</Version>
<Authors>B3zaleel</Authors>
<Description>Decode and encode Draco streams.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/B3zaleel/draco-sharp</RepositoryUrl>
<PackageTags>compression 3d draco</PackageTags>
<PackageOutputPath>./nupkg</PackageOutputPath>
</PropertyGroup>

<ItemGroup>
<None Include="../../README.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>

0 comments on commit 43c10bc

Please sign in to comment.