-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
18 changed files
with
349 additions
and
264 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3.5.3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Build | ||
run: dotnet publish -c ${{env.BUILD_TYPE}} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3.1.2 | ||
with: | ||
path: src/bin |
This file was deleted.
Oops, something went wrong.
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: | ||
inputs: | ||
prerelease: | ||
type: boolean | ||
required: true | ||
description: Prerelease or not | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
DOTNET_VERSION: 8 | ||
ASSEMBLY_NAME: Hosihikari.Minecraft.Foundation | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3.5.3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{env.DOTNET_VERSION}}.0.x | ||
|
||
- name: Build | ||
run: dotnet publish -c ${{env.BUILD_TYPE}} | ||
|
||
- name: Publish NuGet | ||
id: publish-nuget | ||
uses: alirezanet/publish-nuget@v3.1.0 | ||
with: | ||
PROJECT_FILE_PATH: src/${{env.ASSEMBLY_NAME}}.csproj | ||
VERSION_FILE_PATH: Directory.Build.props | ||
TAG_COMMIT: false | ||
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} | ||
NO_BUILD: true | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3.1.2 | ||
with: | ||
path: src/bin/Release/net${{env.DOTNET_VERSION}}.0/publish/ |
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,5 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>1.0.0</Version> | ||
</PropertyGroup> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
namespace Hosihikari.Minecraft.Foundation.Bedrock; | ||
|
||
#pragma warning disable CS9084 | ||
|
||
|
||
public unsafe struct ErrorInfo<E> | ||
where E : unmanaged | ||
{ | ||
private E error; | ||
private fixed byte filler[0x30]; | ||
|
||
#pragma warning disable CS9084 | ||
public ref E Error => ref error; | ||
} | ||
#pragma warning restore CS9084 | ||
} |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.