Skip to content

Commit

Permalink
Merge pull request #385 from FabianTerhorst/dev
Browse files Browse the repository at this point in the history
Merge dev in rc
  • Loading branch information
FabianTerhorst committed Nov 14, 2021
2 parents 60ebc2e + 278ecdb commit d37b895
Show file tree
Hide file tree
Showing 78 changed files with 5,352 additions and 427 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Documentation
on:
push:
branches:
- master
- dev
tags:
- '*.*.*'
# paths:
Expand Down
26 changes: 22 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
run: |
ls -l
- name: Copy nethost
working-directory: /usr/share/dotnet/packs/Microsoft.NETCore.App.Host.linux-x64/5.0.10/runtimes/linux-x64/native/
working-directory: /usr/share/dotnet/packs/Microsoft.NETCore.App.Host.linux-x64/5.0.11/runtimes/linux-x64/native/
run: |
tar -cvf ./libnethost.tar .
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: nethost-linux
path: /usr/share/dotnet/packs/Microsoft.NETCore.App.Host.linux-x64/5.0.10/runtimes/linux-x64/native/libnethost.tar
path: /usr/share/dotnet/packs/Microsoft.NETCore.App.Host.linux-x64/5.0.11/runtimes/linux-x64/native/libnethost.tar
fetch-nethost-windows:
runs-on: windows-2016
steps:
Expand All @@ -36,14 +36,14 @@ jobs:
run: |
dir
- name: Copy nethost
working-directory: C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Host.win-x64\5.0.10\runtimes\win-x64\native\
working-directory: C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Host.win-x64\5.0.11\runtimes\win-x64\native\
run: |
tar -cvf ./libnethost.tar .
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: nethost-windows
path: C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Host.win-x64\5.0.10\runtimes\win-x64\native\libnethost.tar
path: C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Host.win-x64\5.0.11\runtimes\win-x64\native\libnethost.tar
build-api:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -184,6 +184,10 @@ jobs:
echo "$(echo "`cat ./api/AltV.Net/AltV.Net.csproj`" | perl -pe 's/<PackageReleaseNotes>(.*)<\/PackageReleaseNotes>/<PackageReleaseNotes>Changelog can be found here https:\/\/github.com\/FabianTerhorst\/coreclr-module\/releases\/tag\/'${GITHUB_REF##*/}'<\/PackageReleaseNotes>/g')" > ./api/AltV.Net/AltV.Net.csproj
echo "$(echo "`cat ./api/AltV.Net.Async/AltV.Net.Async.csproj`" | perl -pe 's/<PackageVersion>(.*)<\/PackageVersion>/<PackageVersion>'${GITHUB_REF##*/}'<\/PackageVersion>/g')" > ./api/AltV.Net.Async/AltV.Net.Async.csproj
echo "$(echo "`cat ./api/AltV.Net.Async/AltV.Net.Async.csproj`" | perl -pe 's/<PackageReleaseNotes>(.*)<\/PackageReleaseNotes>/<PackageReleaseNotes>Changelog can be found here https:\/\/github.com\/FabianTerhorst\/coreclr-module\/releases\/tag\/'${GITHUB_REF##*/}'<\/PackageReleaseNotes>/g')" > ./api/AltV.Net.Async/AltV.Net.Async.csproj
echo "$(echo "`cat ./api/AltV.Net.Interactions/AltV.Net.Interactions.csproj`" | perl -pe 's/<PackageVersion>(.*)<\/PackageVersion>/<PackageVersion>'${GITHUB_REF##*/}'<\/PackageVersion>/g')" > ./api/AltV.Net.Interactions/AltV.Net.Interactions.csproj
echo "$(echo "`cat ./api/AltV.Net.Interactions/AltV.Net.Interactions.csproj`" | perl -pe 's/<PackageReleaseNotes>(.*)<\/PackageReleaseNotes>/<PackageReleaseNotes>Changelog can be found here https:\/\/github.com\/FabianTerhorst\/coreclr-module\/releases\/tag\/'${GITHUB_REF##*/}'<\/PackageReleaseNotes>/g')" > ./api/AltV.Net.Interactions/AltV.Net.Interactions.csproj
echo "$(echo "`cat ./api/AltV.Net.Async.CodeGen/AltV.Net.Async.CodeGen.csproj`" | perl -pe 's/<PackageVersion>(.*)<\/PackageVersion>/<PackageVersion>'${GITHUB_REF##*/}'<\/PackageVersion>/g')" > ./api/AltV.Net.Async.CodeGen/AltV.Net.Async.CodeGen.csproj
echo "$(echo "`cat ./api/AltV.Net.Async.CodeGen/AltV.Net.Async.CodeGen.csproj`" | perl -pe 's/<PackageReleaseNotes>(.*)<\/PackageReleaseNotes>/<PackageReleaseNotes>Changelog can be found here https:\/\/github.com\/FabianTerhorst\/coreclr-module\/releases\/tag\/'${GITHUB_REF##*/}'<\/PackageReleaseNotes>/g')" > ./api/AltV.Net.Async.CodeGen/AltV.Net.Async.CodeGen.csproj
- uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: ./api/AltV.Net/AltV.Net.csproj
Expand All @@ -198,6 +202,20 @@ jobs:
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
TAG_COMMIT: false
- uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: ./api/AltV.Net.Interactions/AltV.Net.Interactions.csproj
VERSION_REGEX: <PackageVersion>(.*)<\/PackageVersion>
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
TAG_COMMIT: false
- uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: ./api/AltV.Net.Async.CodeGen/AltV.Net.Async.CodeGen.csproj
VERSION_REGEX: <PackageVersion>(.*)<\/PackageVersion>
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
TAG_COMMIT: false
deploy-cdn:
runs-on: ubuntu-latest
needs: deploy-nuget
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* @fabianterhorst
/docs/ @lhoerion
/api/AltV.Net.Async.CodeGen/ @zziger
74 changes: 74 additions & 0 deletions api/AltV.Net.Async.CodeGen/AltV.Net.Async.CodeGen.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>9</LangVersion>
<Nullable>enable</Nullable>
<Authors>AltMp</Authors>
<Description>AltV .NET Core Async CodeGen</Description>
<Copyright>AltMp</Copyright>
<PackageProjectUrl>https://github.com/FabianTerhorst/coreclr-module</PackageProjectUrl>
<RepositoryUrl>https://github.com/FabianTerhorst/coreclr-module</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>altv gta bridge</PackageTags>
<PackageVersion>1.0.0</PackageVersion>
<PackageReleaseNotes>No changelog provided</PackageReleaseNotes>
<PackageLicenseFile>license.txt</PackageLicenseFile>
<PackageIcon>icon.png</PackageIcon>
<IncludeSymbols>true</IncludeSymbols>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<developmentDependency>true</developmentDependency>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<ItemGroup>
<None Include="license\license.txt">
<Pack>true</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="icon.png">
<Pack>true</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" />
</ItemGroup>

<Target Name="AddNuGetDlls" BeforeTargets="_GetPackageFiles">
<JoinItems Left="@(ResolvedCompileFileDefinitions)" LeftKey="NuGetPackageId" LeftMetadata="*"
Right="@(PackageReference)" RightKey="" RightMetadata="*"
ItemSpecToUse="Left">
<Output TaskParameter="JoinResult" ItemName="_PackagesToPack" />
</JoinItems>

<ItemGroup>
<_PackagesToPack Remove="@(_PackagesToPack)" Condition="%(NuGetPackageId) == 'NETStandard.Library'" />
</ItemGroup>

<Message Importance="High" Text="Adding DLLs from the following packages: @(_PackagesToPack->'%(NuGetPackageId)')" />

<ItemGroup>
<None Include="@(_PackagesToPack)"
Pack="true"
PackagePath="analyzers/dotnet/cs"
Visible="false" />

<None Include="$(OutputPath)\$(AssemblyName).dll"
Pack="true"
PackagePath="analyzers/dotnet/cs"
Visible="false" />

<None Include="$(OutputPath)\$(AssemblyName).pdb"
Pack="true"
PackagePath="analyzers/dotnet/cs"
Visible="false" />
</ItemGroup>
</Target>

</Project>

0 comments on commit d37b895

Please sign in to comment.