ci: build and test in parallel and then package

This commit is contained in:
Caelan Sayler
2023-12-25 23:46:24 +00:00
parent 9cc7f6fe6f
commit 1e53647101
3 changed files with 94 additions and 111 deletions

View File

@@ -1,5 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<CurrentOsName>Windows</CurrentOsName>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<CurrentOsName>Linux</CurrentOsName>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<CurrentOsName>OSX</CurrentOsName>
</PropertyGroup>
<PropertyGroup Condition=" $(MSBuildProjectName.EndsWith('Tests')) ">
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
@@ -12,7 +24,7 @@
<!-- Coverage -->
<CoverletOutputFormat>cobertura</CoverletOutputFormat>
<CoverletOutput>..\coverage.$(MSBuildProjectName).xml</CoverletOutput>
<CoverletOutput>..\coverage.$(CurrentOsName).$(MSBuildProjectName).xml</CoverletOutput>
<Include>[Squirrel*]*</Include>
<Exclude>[Squirrel.*.Tests]*,[*]Microsoft*</Exclude>
<CollectCoverage>true</CollectCoverage>

View File

@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;net8.0</TargetFrameworks>
<PropertyGroup Condition =" '$(CurrentOsName)'=='Windows' ">
<TargetFrameworks>net8.0;net48</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition =" '$(CurrentOsName)'=='OSX' ">
<TargetFrameworks>net8.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>