-
Notifications
You must be signed in to change notification settings - Fork 6
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
e2c2c80
commit 2df30d0
Showing
48 changed files
with
852 additions
and
994 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,53 @@ | ||
name: Build Program | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
project: [NDecrypt] | ||
runtime: [win-x86, win-x64, win-arm64, linux-x64, linux-arm64, osx-x64] | ||
framework: [net8.0] #[net20, net35, net40, net452, net472, net48, netcoreapp3.1, net5.0, net6.0, net7.0, net8.0] | ||
conf: [Release, Debug] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet publish ${{ matrix.project }}/${{ matrix.project }}.csproj -f ${{ matrix.framework }} -r ${{ matrix.runtime }} -c ${{ matrix.conf == 'Release' && 'Release -p:DebugType=None -p:DebugSymbols=false' || 'Debug'}} --self-contained true --version-suffix ${{ github.sha }} ${{ (startsWith(matrix.framework, 'net5') || startsWith(matrix.framework, 'net6') || startsWith(matrix.framework, 'net7') || startsWith(matrix.framework, 'net8')) && '-p:PublishSingleFile=true' || ''}} | ||
|
||
- name: Archive build | ||
run: zip -r ${{ matrix.project }}_${{ matrix.framework }}_${{ matrix.runtime }}_${{ matrix.conf }}.zip ${{ matrix.project }}/bin/${{ matrix.conf }}/${{ matrix.framework }}/${{ matrix.runtime }}/publish/ | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.project }}_${{ matrix.framework }}_${{ matrix.runtime }}_${{ matrix.conf }} | ||
path: ${{ matrix.project }}_${{ matrix.framework }}_${{ matrix.runtime }}_${{ matrix.conf }}.zip | ||
|
||
- name: Upload to rolling | ||
uses: ncipollo/[email protected] | ||
with: | ||
allowUpdates: True | ||
artifacts: ${{ matrix.project }}_${{ matrix.framework }}_${{ matrix.runtime }}_${{ matrix.conf }}.zip | ||
body: 'Last built commit: ${{ github.sha }}' | ||
name: 'Rolling Release' | ||
prerelease: True | ||
replacesArtifacts: True | ||
tag: "rolling" | ||
updateOnlyUnreleased: True |
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,17 @@ | ||
name: Build PR | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Build | ||
run: dotnet build |
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,21 +1,54 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net48;net6.0</TargetFrameworks> | ||
<!-- Assembly Properties --> | ||
<TargetFrameworks>net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks> | ||
<CheckEolTargetFramework>false</CheckEolTargetFramework> | ||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> | ||
<LangVersion>latest</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<VersionPrefix>0.2.5</VersionPrefix> | ||
|
||
<!-- Package Properties --> | ||
<Authors>Matt Nadareski</Authors> | ||
<Copyright>Copyright (c)2018-2023 Matt Nadareski</Copyright> | ||
<Description>Common code for all NDecrypt processors</Description> | ||
<Copyright>Copyright (c) Matt Nadareski 2019-2024</Copyright> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/SabreTools/</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/SabreTools/NDecrypt</RepositoryUrl> | ||
<Version>0.2.5</Version> | ||
<AssemblyVersion>$(Version)</AssemblyVersion> | ||
<FileVersion>$(Version)</FileVersion> | ||
<IncludeSource>true</IncludeSource> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<RepositoryType>git</RepositoryType> | ||
</PropertyGroup> | ||
|
||
<!-- Support All Frameworks --> | ||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net4`))"> | ||
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`netcoreapp`)) OR $(TargetFramework.StartsWith(`net5`))"> | ||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64</RuntimeIdentifiers> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net6`)) OR $(TargetFramework.StartsWith(`net7`)) OR $(TargetFramework.StartsWith(`net8`))"> | ||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(RuntimeIdentifier.StartsWith(`osx-arm`))"> | ||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<!-- Support for old .NET versions --> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net40`))"> | ||
<PackageReference Include="MinAsyncBridge" Version="0.12.4" /> | ||
<PackageReference Include="MinTasksExtensionsBridge" Version="0.3.4" /> | ||
<PackageReference Include="MinThreadingBridge" Version="0.11.4" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith(`net4`)) AND !$(TargetFramework.StartsWith(`net40`))"> | ||
<PackageReference Include="IndexRange" Version="1.0.3" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BouncyCastle.NetCore" Version="1.9.0" /> | ||
<PackageReference Include="SabreTools.Hashing" Version="1.2.1" /> | ||
<PackageReference Include="SabreTools.IO" Version="1.4.11" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.