Build: Fixing clean, restore and pack state for the skipped windows host

This commit is contained in:
Zoe Roux 2021-08-22 20:41:00 +02:00
parent 3b85962dfd
commit 4ae0a98336
2 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,7 @@ jobs:
else else
# sudo add-apt-repository -y "deb http://azure.archive.ubuntu.com/ubuntu groovy main multiverse restricted universe" # sudo add-apt-repository -y "deb http://azure.archive.ubuntu.com/ubuntu groovy main multiverse restricted universe"
# sudo apt-get update -y # sudo apt-get update -y
sudo apt-get update
sudo apt-get install -y libavutil-dev libavcodec-dev libavformat-dev sudo apt-get install -y libavutil-dev libavcodec-dev libavformat-dev
fi fi
- name: Enabling windows compilations tools - name: Enabling windows compilations tools

View File

@ -1,12 +1,20 @@
<Project> <Project>
<!-- Project file used instead of the default csproj when the host system is not windows. This only skip the build. --> <!-- Project file used instead of the default csproj when the host system is not windows. This only skip the build. -->
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<NoWarn>NU1503</NoWarn> <NoWarn>NU1503</NoWarn>
</PropertyGroup> </PropertyGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Target Name="Build"> <Target Name="Build">
<Message Importance="high" Text="Detected current operating system is not windows, skipping WindowsHost build." /> <Message Importance="high" Text="Detected current operating system is not windows, skipping WindowsHost build." />
</Target> </Target>
<Target Name="Clean" />
<Target Name="Pack" />
<Target Name="Restore" />
</Project> </Project>