Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strong Name #17

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ jobs:
build:

runs-on: ubuntu-latest


env:
SNK_BASE64: ${{ secrets.SN_KEY }}

steps:
- uses: actions/checkout@v3
- name: Setup .NET
Expand All @@ -21,6 +24,9 @@ jobs:
dotnet build -c Release ./Rxmxnx.PInvoke.Common.Intermediate
dotnet build -c Release ./Rxmxnx.PInvoke.CString.Intermediate
dotnet build -c Release ./Rxmxnx.PInvoke.Extensions.Intermediate
- name: Extract public key
working-directory: ./package
run: echo "${SNK_BASE64}" | base64 -d > Rxmxnx.PInvoke.snk
- name: Create NuGet Package
working-directory: ./package
run: dotnet pack -c Release /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/josephmoresena/Rxmxnx.PInvoke.Extensions/releases/tag/${{ github.event.release.tag_name }}"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,4 @@ MigrationBackup/
**/.DS_Store
**/Rxmxnx.PInvoke*.xml
**/.idea
package/Rxmxnx.PInvoke.snk
5 changes: 5 additions & 0 deletions package/Rxmxnx.PInvoke.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="Exists('Rxmxnx.PInvoke.snk')">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Rxmxnx.PInvoke.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
Expand Down
14 changes: 14 additions & 0 deletions src/Rxmxnx.PInvoke.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Rxmxnx.PInvoke.Extensions.T
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rxmxnx.PInvoke.Tests.Base", "Test\Rxmxnx.PInvoke.Tests.Base\Rxmxnx.PInvoke.Tests.Base.csproj", "{0DD5850A-EEF6-4C33-AEA8-3E3713E311D1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Intermediate", "Intermediate", "{7471F0F0-581A-4D38-BD0B-C3B44FA8ABC8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{36897245-7D3A-4774-A7CE-4F9D0A86D3C7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -64,4 +68,14 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7365B188-C615-4D3B-ADCD-86202A8300F0}
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{28D580AB-F5AF-44F7-8071-5D200C9858AA} = {7471F0F0-581A-4D38-BD0B-C3B44FA8ABC8}
{A92F32C0-A2F5-419A-9AA2-E1DF8E16FDC4} = {7471F0F0-581A-4D38-BD0B-C3B44FA8ABC8}
{788B317D-B5DB-4CFB-BE05-3E410820F306} = {7471F0F0-581A-4D38-BD0B-C3B44FA8ABC8}
{CD98BE04-3132-4B29-9236-6A72FC78825C} = {36897245-7D3A-4774-A7CE-4F9D0A86D3C7}
{6D46C20D-7631-4082-9661-E566D0C67996} = {36897245-7D3A-4774-A7CE-4F9D0A86D3C7}
{F47599B6-C9C6-4827-B59D-F37CA978F94F} = {36897245-7D3A-4774-A7CE-4F9D0A86D3C7}
{C437B5BE-9FCA-4485-A4A1-A8C88068DA56} = {36897245-7D3A-4774-A7CE-4F9D0A86D3C7}
{0DD5850A-EEF6-4C33-AEA8-3E3713E311D1} = {36897245-7D3A-4774-A7CE-4F9D0A86D3C7}
EndGlobalSection
EndGlobal
Loading