-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45c77bd
commit a2e9c6c
Showing
16 changed files
with
1,037 additions
and
1,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: "Bindgen" | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "Release" | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 1 * *" # First day of every month | ||
|
||
jobs: | ||
|
||
build-job: | ||
name: "Build" | ||
uses: "./.github/workflows/build.yml" | ||
|
||
release-job: | ||
name: "Release .NET solution" | ||
needs: [build-job] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: "Clone Git repository" | ||
uses: actions/checkout@master | ||
|
||
- name: "Download native libraries (win-x64)" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "native-libraries-win-x64" | ||
path: "./lib" | ||
|
||
- name: "Download native libraries (osx)" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "native-libraries-osx" | ||
path: "./lib" | ||
|
||
- name: "Download native libraries (linux-x64)" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "native-libraries-linux-x64" | ||
path: "./lib" | ||
|
||
- name: ".NET pack" | ||
run: dotnet pack "./src/cs" --nologo --verbosity minimal --configuration Release --no-build -p:PackageVersion="$(date +'%Y.%m.%d')" | ||
|
||
- name: "Upload packages" | ||
run: dotnet nuget push "./nupkg/**/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $NUGET_ACCESS_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,20 @@ | ||
<Project> | ||
|
||
<!-- Variables --> | ||
<PropertyGroup> | ||
<GitRepositoryPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), .gitignore))/</GitRepositoryPath> | ||
<IsWindows Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true' ">true</IsWindows> | ||
<IsMacOS Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true' ">true</IsMacOS> | ||
<IsLinux Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true' ">true</IsLinux> | ||
<UseArtifactsOutput>true</UseArtifactsOutput> | ||
<ArtifactsPath>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), .gitignore))/artifacts</ArtifactsPath> | ||
</PropertyGroup> | ||
|
||
<!-- Change obj/ and bin/ folders --> | ||
<PropertyGroup> | ||
<!-- `BaseIntermediateOutputPath`, `MSBuildProjectExtensionsPath`, and `RestoreOutputPath` must all be the same --> | ||
<BaseIntermediateOutputPath>$(GitRepositoryPath)obj/$(MSBuildProjectName)/$(Configuration)</BaseIntermediateOutputPath> | ||
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath> | ||
<RestoreOutputPath>$(BaseIntermediateOutputPath)</RestoreOutputPath> | ||
<OutputPath>$(GitRepositoryPath)bin/$(MSBuildProjectName)/$(Configuration)</OutputPath> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet --> | ||
<PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<!-- Code analysis settings --> | ||
<PropertyGroup> | ||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<AnalysisMode>all</AnalysisMode> | ||
<AnalysisLevel>latest</AnalysisLevel> | ||
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild> | ||
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NoWarn>$(NoWarn);CS1591;CA1050;CA1051;CA1062;CA1711;CA1716;CA1720;CA1822;CA5392</NoWarn> | ||
</PropertyGroup> | ||
|
||
<!-- StyleCop --> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<GlobalAnalyzerConfigFiles Include="$(MSBuildThisFileDirectory)StyleCop.globalconfig" /> | ||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)StyleCop.json" Link="StyleCop.json" Visible="false" /> | ||
<PackageReference Include="bottlenoselabs.Common.Tools" Version="*"> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
|
||
<PackageReference Include="StyleCop.Analyzers.Unstable" Version="*"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
</Project> | ||
|
||
</Project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<Project> | ||
|
||
</Project> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/cs/production/Sokol.runtime.linux-x64/Sokol.runtime.linux-x64.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard1.0</TargetFramework> | ||
<ImplicitUsings>false</ImplicitUsings> | ||
<Nullable>disable</Nullable> | ||
<NoPackageAnalysis>true</NoPackageAnalysis> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet --> | ||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
<DevelopmentDependency>true</DevelopmentDependency> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
</PropertyGroup> | ||
|
||
<!-- Dynamic link libraries --> | ||
<ItemGroup> | ||
<Content Include="$(GitRepositoryPath)/lib/libsokol.so"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<PackagePath>runtimes/linux-x64/native/%(Filename)%(Extension)</PackagePath> | ||
<Pack>true</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
</Project> |
29 changes: 29 additions & 0 deletions
29
src/cs/production/Sokol.runtime.osx/Sokol.runtime.osx.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard1.0</TargetFramework> | ||
<ImplicitUsings>false</ImplicitUsings> | ||
<Nullable>disable</Nullable> | ||
<NoPackageAnalysis>true</NoPackageAnalysis> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet --> | ||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
<DevelopmentDependency>true</DevelopmentDependency> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
</PropertyGroup> | ||
|
||
<!-- Dynamic link libraries --> | ||
<ItemGroup> | ||
<Content Include="$(GitRepositoryPath)/lib/libsokol.dylib"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<PackagePath>runtimes/osx/native/%(Filename)%(Extension)</PackagePath> | ||
<Pack>true</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
</Project> |
29 changes: 29 additions & 0 deletions
29
src/cs/production/Sokol.runtime.win-x64/Sokol.runtime.win-x64.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard1.0</TargetFramework> | ||
<ImplicitUsings>false</ImplicitUsings> | ||
<Nullable>disable</Nullable> | ||
<NoPackageAnalysis>true</NoPackageAnalysis> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet --> | ||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> | ||
<DevelopmentDependency>true</DevelopmentDependency> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
</PropertyGroup> | ||
|
||
<!-- Dynamic link libraries --> | ||
<ItemGroup> | ||
<Content Include="$(GitRepositoryPath)/lib/sokol.dll"> | ||
<Link>%(Filename)%(Extension)</Link> | ||
<PackagePath>runtimes/win-x64/native/%(Filename)%(Extension)</PackagePath> | ||
<Pack>true</Pack> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// To disable generating this file set `isEnabledGenerateAssemblyAttributes` to `false` in the config file for generating C# code. | ||
// <auto-generated> | ||
// This code was generated by the following tool on 2023-08-04 17:37:31 GMT-04:00: | ||
// https://github.com/bottlenoselabs/c2cs (v6.0.7.0) | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. | ||
// </auto-generated> | ||
// ReSharper disable All | ||
|
||
#region Template | ||
#nullable enable | ||
#pragma warning disable CS1591 | ||
#pragma warning disable CS8981 | ||
global using bottlenoselabs.C2CS.Runtime; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Runtime.InteropServices; | ||
using System.Runtime.CompilerServices; | ||
#endregion | ||
|
||
#if NET7_0_OR_GREATER | ||
[assembly: DisableRuntimeMarshalling] | ||
#endif | ||
|
||
[assembly: DefaultDllImportSearchPathsAttribute(DllImportSearchPath.SafeDirectories)] |
Oops, something went wrong.