forked from DiffSharp/DiffSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
60 lines (48 loc) · 2.99 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Project>
<PropertyGroup>
<LibTorchNugetVersion>1.5.6</LibTorchNugetVersion>
<TorchSharpVersion>0.3.52276</TorchSharpVersion>
<FSharpCoreVersion>4.7.2</FSharpCoreVersion>
<!-- Standard nuget.org location -->
<RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources>
<!-- TorchSharp local build packages -->
<RestoreSources Condition="Exists('$(MSBuildThisFileDirectory)../TorchSharp/bin/packages/Release')">
$(RestoreSources);$(MSBuildThisFileDirectory)../TorchSharp/bin/packages/Release;
</RestoreSources>
<!-- TorchSharp local build packages -->
<RestoreSources Condition="Exists('$(MSBuildThisFileDirectory)../TorchSharp/bin/packages/Debug')">
$(RestoreSources);$(MSBuildThisFileDirectory)../TorchSharp/bin/packages/Debug;
</RestoreSources>
<!-- TorchSharp CI build packages
<RestoreSources>
$(RestoreSources);
https://donsyme.pkgs.visualstudio.com/TorchSharp/_packaging/packages2/nuget/v3/index.json
</RestoreSources>
-->
<OtherFlags>--warnon:1182 --warnon:3390 $(OtherFlags)</OtherFlags>
</PropertyGroup>
<PropertyGroup>
<Version>1.0.0</Version>
<Authors>Atılım Güneş Baydin, Barak A. Pearlmutter and DiffSharp contributors</Authors>
<Owners>DiffSharp maintainers</Owners>
<PackageProjectUrl>https://diffsharp.github.io</PackageProjectUrl>
<RepositoryUrl>https://github.com/DiffSharp/DiffSharp/</RepositoryUrl>
<RepositoryBranch>dev</RepositoryBranch>
<PackageLicenseExpression>BSD-2-Clause</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<Copyright>Copyright 2014-2020</Copyright>
<PackageTags>F# fsharp ML AI Machine Learning PyTorch Automatic Differentiation Gradients</PackageTags>
<!-- local build uses number unique by day -->
<PackageVersion Condition="'$(GITHUB_ACTIONS)' != 'true'">$(Version)-local-$([System.DateTime]::Now.ToString(`yyMMdd`))</PackageVersion>
<!-- tagged build on CI uses number -->
<PackageVersion Condition="'$(GITHUB_ACTIONS)' == 'true' AND '$(GITHUB_REF)' == 'refs/tags/v$(Version)'">$(Version)</PackageVersion>
<!-- untagged build on CI uses unique -->
<PackageVersion Condition="'$(GITHUB_ACTIONS)' == 'true' AND '$(GITHUB_REF)' != 'refs/tags/v$(Version)'">$(Version)-preview-$(GITHUB_RUN_ID)</PackageVersion>
<PackageOutputPath>$(MSBuildThisFileDirectory)/bin/packages</PackageOutputPath>
<NuspecProperties>Authors=$(Authors);Owners=$(Owners);ProjectId=$(MSBuildProjectName);PackageVersion=$(PackageVersion);TorchSharpVersion=$(TorchSharpVerion);LibTorchNugetVersion=$(LibTorchNugetVersion)</NuspecProperties>
</PropertyGroup>
<Target Name="Check" BeforeTargets="PrepareForBuild"
Condition="'$(APPVEYOR_REPO_TAG)' != '' AND '$(APPVEYOR_REPO_TAG_NAME)' != '' AND '$(APPVEYOR_REPO_TAG_NAME)' != '$(Version)'">
<Error Test="mismatch betwen repo tag '$(APPVEYOR_REPO_TAG_NAME)' and version '$(Version)' in msbuild, refusing to build package" />
</Target>
</Project>