parent
84e337b05c
commit
f58b4640c5
|
@ -43,7 +43,7 @@ jobs:
|
||||||
dotnet-version: "8"
|
dotnet-version: "8"
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet tool restore && dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
|
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
package:
|
package:
|
||||||
|
|
|
@ -52,4 +52,9 @@
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="all" />
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="all" />
|
||||||
<PackageReference Include="System.Resources.Extensions" PrivateAssets="all" />
|
<PackageReference Include="System.Resources.Extensions" PrivateAssets="all" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Target Name="RestoreTools" BeforeTargets="PreBuildEvent">
|
||||||
|
<!-- why is this not the default behaviour -->
|
||||||
|
<Exec Command="dotnet tool restore"
|
||||||
|
StandardOutputImportance="low" /> <!-- this parameter has almost no documentation, hooray -->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -12,5 +12,4 @@ if [ -z "$NUGET_PACKAGES" ]; then export NUGET_PACKAGES="$HOME/.nuget/packages";
|
||||||
printf "running 'dotnet %s' in %s configuration, extra args: %s\n" "$cmd" "$config" "$*"
|
printf "running 'dotnet %s' in %s configuration, extra args: %s\n" "$cmd" "$config" "$*"
|
||||||
version=$(grep -Po "MainVersion = \"\K(.*)(?=\")" src/BizHawk.Common/VersionInfo.cs)
|
version=$(grep -Po "MainVersion = \"\K(.*)(?=\")" src/BizHawk.Common/VersionInfo.cs)
|
||||||
git_hash="$(git rev-parse --verify HEAD 2>/dev/null || printf "0000000000000000000000000000000000000000")"
|
git_hash="$(git rev-parse --verify HEAD 2>/dev/null || printf "0000000000000000000000000000000000000000")"
|
||||||
dotnet tool restore >/dev/null || (echo "dotnet tool restore failed"; exit 1)
|
|
||||||
dotnet "$cmd" BizHawk.sln -c "$config" -m -clp:NoSummary -p:Version="$version" -p:SourceRevisionId="$git_hash" "$@"
|
dotnet "$cmd" BizHawk.sln -c "$config" -m -clp:NoSummary -p:Version="$version" -p:SourceRevisionId="$git_hash" "$@"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.SrcGen.VersionInfo.dll" />
|
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.SrcGen.VersionInfo.dll" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Target Name="InstallGitHooks" BeforeTargets="PreBuildEvent">
|
<Target Name="InstallGitHooks" AfterTargets="PreBuildEvent">
|
||||||
<Exec Command="dotnet pwsh $(MSBuildProjectDirectory)/../../Dist/install_git_hooks.ps1" />
|
<Exec Command="dotnet pwsh $(MSBuildProjectDirectory)/../../Dist/install_git_hooks.ps1" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in New Issue